Skip to content

Commit e4473fe

Browse files
author
nidhal baccouri
committed
updated google trans
1 parent 0085ed6 commit e4473fe

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

deep_translator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
__author__ = """Nidhal Baccouri"""
1515
__email__ = '[email protected]'
16-
__version__ = '1.3.7'
16+
__version__ = '1.3.8'
1717

1818
__all__ = [GoogleTranslator,
1919
PonsTranslator,

deep_translator/google_trans.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,10 @@ def translate(self, text, **kwargs):
9191
response = requests.get(self.__base_url,
9292
params=self._url_params, headers ={'User-agent': 'your bot 0.1'})
9393

94-
# print(response.url)
9594
if response.status_code == 429:
9695
raise TooManyRequests()
9796

9897
if response.status_code != 200:
99-
# print("status code", response.status_code)
10098
raise RequestError()
10199

102100
soup = BeautifulSoup(response.text, 'html.parser')

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.3.7
2+
current_version = 1.3.8
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
test_suite='tests',
7171
tests_require=test_requirements,
7272
url='https://github.com/nidhaloff/deep_translator',
73-
version='1.3.7',
73+
version='1.3.8',
7474
zip_safe=False,
7575
)

0 commit comments

Comments
 (0)