Fixed all pep8 errors

Removed unused imports, variables
This commit is contained in:
YOGESHWARAN R 2021-05-18 09:21:33 +05:30
parent 202db95f52
commit 32061eed7b
No known key found for this signature in database
GPG key ID: A43D3BDEF049D20D
11 changed files with 32 additions and 20 deletions

View file

@ -4,7 +4,6 @@ from argostranslate import translate
from polyglot.detect.base import Detector, UnknownLanguage
from polyglot.transliteration.base import Transliterator
languages = translate.load_installed_languages()
@ -24,7 +23,7 @@ def detect_languages(text):
for t in text:
try:
candidates.extend(Detector(t).languages)
except UnknownLanguage as e:
except UnknownLanguage:
pass
# total read bytes of the provided text