= commited on
Commit
eaf7d7b
·
1 Parent(s): d7e43a2

fixed docs build

Browse files
deep_translator/__init__.py CHANGED
@@ -9,7 +9,7 @@ from .detection import single_detection, batch_detection
9
 
10
  __author__ = """Nidhal Baccouri"""
11
  __email__ = '[email protected]'
12
- __version__ = '1.1.8'
13
 
14
  __all__ = [GoogleTranslator,
15
  PonsTranslator,
 
9
 
10
  __author__ = """Nidhal Baccouri"""
11
  __email__ = '[email protected]'
12
+ __version__ = '1.1.9'
13
 
14
  __all__ = [GoogleTranslator,
15
  PonsTranslator,
deep_translator/google_trans.py CHANGED
@@ -136,7 +136,3 @@ class GoogleTranslator(BaseTranslator):
136
  except Exception as e:
137
  raise e
138
 
139
-
140
- if __name__ == '__main__':
141
- res = GoogleTranslator("auto", "de").translate("keep it up, you are awesome")
142
- print(res)
 
136
  except Exception as e:
137
  raise e
138
 
 
 
 
 
deep_translator/parent.py CHANGED
@@ -27,7 +27,8 @@ class BaseTranslator(ABC):
27
  self._element_tag = element_tag
28
  self._element_query = element_query
29
  self.payload_key = payload_key
30
- self.headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebit/535.19'
 
31
  '(KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19'}
32
  super(BaseTranslator, self).__init__()
33
 
@@ -66,3 +67,5 @@ class BaseTranslator(ABC):
66
  """
67
  return NotImplemented('You need to implement the translate method!')
68
 
 
 
 
27
  self._element_tag = element_tag
28
  self._element_query = element_query
29
  self.payload_key = payload_key
30
+ self.headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) '
31
+ 'AppleWebit/535.19'
32
  '(KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19'}
33
  super(BaseTranslator, self).__init__()
34
 
 
67
  """
68
  return NotImplemented('You need to implement the translate method!')
69
 
70
+
71
+