Commits

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/i18n.py

 
 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())
 gettext.textdomain("tortoisehg")
     to command-line interface (ie: Windows Command Prompt).
     """
     try:
+        from tortoisehg.util import hglib
         u = _(message)
         return hglib.fromutf(u)
     except (LookupError, UnicodeEncodeError):