1. zjes
  2. rope_py3k

Commits

Ali Gholami Rudi  committed fa38551

pyobjectsdef: code cleanup

  • Participants
  • Parent commits 0854bf3
  • Branches trunk

Comments (0)

Files changed (1)

File rope/base/pyobjectsdef.py

View file
 
     def __init__(self, pycore, source=None,
                  resource=None, force_errors=False):
-        syntax_errors = (force_errors or
-                         not pycore.project.prefs.get('ignore_syntax_errors',
-                                                      False))
+        ignore = pycore.project.prefs.get('ignore_syntax_errors', False)
+        syntax_errors = force_errors or not ignore
         try:
             source, node = self._init_source(pycore, source, resource)
         except exceptions.ModuleSyntaxError: