harry commited on
Commit
4b6dfb9
·
1 Parent(s): 2edc0e2

remove print

Browse files
Files changed (1) hide show
  1. deep_translator/baidu.py +0 -7
deep_translator/baidu.py CHANGED
@@ -95,7 +95,6 @@ class BaiduTranslator(BaseTranslator):
95
  )
96
  except ConnectionError:
97
  raise ServerException(503)
98
- print(response)
99
  if response.status_code != 200:
100
  raise ServerException(response.status_code)
101
  # Get the response and check is not empty.
@@ -119,9 +118,3 @@ class BaiduTranslator(BaseTranslator):
119
  @return: list of translations
120
  """
121
  return self._translate_batch(batch, **kwargs)
122
-
123
-
124
- if __name__ == "__main__":
125
- d = BaiduTranslator(target="zh", appid="some-appid", appkey="some-appkey")
126
- t = d.translate("Hello\nHow are you?")
127
- print("text: ", t)
 
95
  )
96
  except ConnectionError:
97
  raise ServerException(503)
 
98
  if response.status_code != 200:
99
  raise ServerException(response.status_code)
100
  # Get the response and check is not empty.
 
118
  @return: list of translations
119
  """
120
  return self._translate_batch(batch, **kwargs)