]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
remove duplicate import of gettext 2609/head
authorFrédéric Chapoton <fchapoton2@gmail.com>
Sun, 3 Mar 2019 10:54:48 +0000 (11:54 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2019 10:54:48 +0000 (11:54 +0100)
tornado/locale.py

index b72d81bc7f5eb64d097c12585fae572e92b5a96c..242555151cf27cbd6efbe095a229c44a75c7a2f0 100644 (file)
@@ -196,8 +196,6 @@ def load_gettext_translations(directory: str, domain: str) -> None:
 
         msgfmt mydomain.po -o {directory}/pt_BR/LC_MESSAGES/mydomain.mo
     """
-    import gettext
-
     global _translations
     global _supported_locales
     global _use_gettext