This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alejolp
Recipients alejolp, djc
Date 2009-07-03.12:33:27
SpamBayes Score 2.4654168e-12
Marked as misclassified No
Message-id <1246624409.35.0.327265047408.issue6406@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-03 12:33:29alejolpsetrecipients: + alejolp, djc
2009-07-03 12:33:29alejolpsetmessageid: <1246624409.35.0.327265047408.issue6406@psf.upfronthosting.co.za>
2009-07-03 12:33:28alejolplinkissue6406 messages
2009-07-03 12:33:27alejolpcreate