[gedit-plugins/translate-server] Remove print
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/translate-server] Remove print
- Date: Sun, 18 Oct 2020 18:26:49 +0000 (UTC)
commit 51a3af9e5616146ab0505c6dbcb1cff823454b77
Author: Jordi Mas <jmas softcatala org>
Date: Sun Oct 18 20:26:42 2020 +0200
Remove print
plugins/translate/translate/__init__.py | 1 -
plugins/translate/translate/services/apertium.py | 1 -
2 files changed, 2 deletions(-)
---
diff --git a/plugins/translate/translate/__init__.py b/plugins/translate/translate/__init__.py
index cd69d88..18e6f29 100644
--- a/plugins/translate/translate/__init__.py
+++ b/plugins/translate/translate/__init__.py
@@ -46,7 +46,6 @@ def _get_translation_service_shared(service_id):
if service_id == Services.APERTIUM_ID:
server = settings.get_apertium_server()
- print("Init:" + server)
service.set_server(server)
service.init()
diff --git a/plugins/translate/translate/services/apertium.py
b/plugins/translate/translate/services/apertium.py
index 31353ac..1966967 100644
--- a/plugins/translate/translate/services/apertium.py
+++ b/plugins/translate/translate/services/apertium.py
@@ -198,7 +198,6 @@ class Apertium(Service):
def translate_text(self, text, language_pair):
url = "{0}/translate?langpair={1}&markUnknown=no".format(self.server, language_pair)
url += "&q=" + urllib.parse.quote_plus(text.encode('utf-8'))
- print(url)
response = urllib.request.urlopen(url)
data = json.loads(response.read().decode("utf-8"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]