New submission from Alejandro Santos <alej...@alejolp.com>: Using the -j switch of the 2to3 tool shiped with Python 3.1 final i'm getting:
Traceback (most recent call last): File "/home/alejo/apps/local/bin/2to3", line 6, in <module> sys.exit(main("lib2to3.fixes")) File "/home/alejo/apps/local/lib/python3.1/lib2to3/main.py", line 132, in main options.processes) File "/home/alejo/apps/local/lib/python3.1/lib2to3/refactor.py", line 553, in refactor for i in xrange(num_processes)] NameError: global name 'xrange' is not defined Attached patch seems to work fine. ---------- components: 2to3 (2.x to 3.0 conversion tool) files: 2to3-xrange.patch keywords: patch messages: 90048 nosy: alejolp, djc severity: normal status: open title: NameError on 2to3 tool type: crash versions: Python 3.1 Added file: http://bugs.python.org/file14436/2to3-xrange.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6406> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com