Albert Hopkins <[EMAIL PROTECTED]> added the comment: Thanks for looking into this.
Ok... I applied your patch (actually it does not apply against Python 3.0 so I had to change it manually). Now I'm not sure if this is still an error in the compiler or if it's truly a problem on my end, but the line given in the error doesn't contain a del statement at all. The code basically looks like this: def method(self): ... success = False e = None try: success, mydepgraph, dropped_tasks = resume_depgraph( self.settings, self.trees, self._mtimedb, self.myopts, myparams, self._spinner, skip_unsatisfied=True) except depgraph.UnsatisfiedResumeDep as e: mydepgraph = e.depgraph dropped_tasks = set() With the patch, the error occurs at "dropped_tasks = set()" in the except clause. The first time that "dropped_tasks" is used in the entire module is in the try clause. This is a horrible piece of code (I did not write it). Do you think the SyntaxError message could be masking what the real error is? Again, the python2 version of this module imports fine, but when I run 2to3 on it I get the SyntaxError. The line of code in question, however, is unmodified by 2to3. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4613> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com