1. Ian George
  2. pylint

Commits

Sylvain Thénault  committed 61dae5b

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

  • Participants
  • Parent commits 8714a7b
  • Branches default

Comments (0)

Files changed (1)

File lint.py

View file
 # 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):