Steve Borho committed ceeb781

i18n: move import of hglib into function, avoid circular import

  • Participants
  • Parent commits e555264
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/

 import gettext, sys
 from gettext import gettext as _
-from tortoisehg.util import paths, hglib
+from tortoisehg.util import paths
 gettext.bindtextdomain("tortoisehg", paths.get_locale_path())
     to command-line interface (ie: Windows Command Prompt).
+        from tortoisehg.util import hglib
         u = _(message)
         return hglib.fromutf(u)
     except (LookupError, UnicodeEncodeError):