Commits

Sylvain Thénault  committed 61dae5b

use lgc.compat to access builtins for cross-interpreters compat

  • Participants
  • Parent commits 8714a7b

Comments (0)

Files changed (1)

 # utilities ###################################################################
 
 # this may help to import modules using gettext
+# XXX syt, actually needed since we don't import code?
 
-try:
-    __builtins__._ = str
-except AttributeError:
-    __builtins__['_'] = str
+from logilab.common.compat import builtins
+builtins._ = str
 
 
 class ArgumentPreprocessingError(Exception):