Removed an unneeded import in translator module

This commit is contained in:
Manuel Cortez 2015-12-23 09:52:32 -06:00
parent 78079e142f
commit 0882e4707d

View File

@ -1,10 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import keys
from microsofttranslator import Translator from microsofttranslator import Translator
def translate(text="", source="auto", target="en"): def translate(text="", source="auto", target="en"):
t = Translator("twblue", "4KZA26GYIfmVAqQA/z16Hlucbg64hVSDTIpRjT2FqIU=") t = Translator("twblue", "4KZA26GYIfmVAqQA/z16Hlucbg64hVSDTIpRjT2FqIU=")
return t.translate(text, target).encode("utf-8") return t.translate(text, target)
languages = { languages = {