=
commited on
Commit
·
29bdf29
1
Parent(s):
bf2366b
fixed travis import errors
Browse files- deep_translator/google_trans.py +3 -3
- deep_translator/parent.py +1 -1
- deep_translator/pons.py +3 -3
deep_translator/google_trans.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from abc import ABC
|
2 |
|
3 |
-
from constants import BASE_URLS, GOOGLE_LANGUAGES_TO_CODES
|
4 |
-
from exceptions import LanguageNotSupportedException, ElementNotFoundInGetRequest, NotValidPayload, NotValidLength
|
5 |
-
from parent import BaseTranslator
|
6 |
from bs4 import BeautifulSoup
|
7 |
import requests
|
8 |
|
|
|
1 |
from abc import ABC
|
2 |
|
3 |
+
from .constants import BASE_URLS, GOOGLE_LANGUAGES_TO_CODES
|
4 |
+
from .exceptions import LanguageNotSupportedException, ElementNotFoundInGetRequest, NotValidPayload, NotValidLength
|
5 |
+
from .parent import BaseTranslator
|
6 |
from bs4 import BeautifulSoup
|
7 |
import requests
|
8 |
|
deep_translator/parent.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
"""Main module."""
|
2 |
|
3 |
-
from exceptions import NotValidPayload
|
4 |
from abc import ABC, abstractmethod
|
5 |
|
6 |
|
|
|
1 |
"""Main module."""
|
2 |
|
3 |
+
from .exceptions import NotValidPayload
|
4 |
from abc import ABC, abstractmethod
|
5 |
|
6 |
|
deep_translator/pons.py
CHANGED
@@ -2,9 +2,9 @@ from abc import ABC
|
|
2 |
|
3 |
from bs4 import BeautifulSoup
|
4 |
import requests
|
5 |
-
from constants import BASE_URLS, PONS_LANGUAGES_TO_CODES, PONS_CODES_TO_LANGUAGES
|
6 |
-
from exceptions import LanguageNotSupportedException, ElementNotFoundInGetRequest
|
7 |
-
from parent import BaseTranslator
|
8 |
from requests.utils import quote
|
9 |
|
10 |
|
|
|
2 |
|
3 |
from bs4 import BeautifulSoup
|
4 |
import requests
|
5 |
+
from .constants import BASE_URLS, PONS_LANGUAGES_TO_CODES, PONS_CODES_TO_LANGUAGES
|
6 |
+
from .exceptions import LanguageNotSupportedException, ElementNotFoundInGetRequest
|
7 |
+
from .parent import BaseTranslator
|
8 |
from requests.utils import quote
|
9 |
|
10 |
|