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 rom16384
Recipients rom16384
Date 2010-04-29.14:57:17
SpamBayes Score 2.73303e-06
Marked as misclassified No
Message-id <>
The attached file crashes 2to3 with traceback:

Traceback (most recent call last):
  File "/usr/bin/2to3", line 6, in <module>
  File "/usr/lib/python2.6/lib2to3/", line 129, in main
    rt.refactor(args, options.write, options.doctests_only)
  File "/usr/lib/python2.6/lib2to3/", line 196, in refactor
    self.refactor_file(dir_or_file, write, doctests_only)
  File "/usr/lib/python2.6/lib2to3/", line 235, in refactor_file
    tree = self.refactor_string(input, filename)
  File "/usr/lib/python2.6/lib2to3/", line 260, in refactor_string
    self.refactor_tree(tree, name)
  File "/usr/lib/python2.6/lib2to3/", line 294, in refactor_tree
    self.traverse_by(self.post_order_heads, tree.post_order())
  File "/usr/lib/python2.6/lib2to3/", line 316, in traverse_by
    results = fixer.match(node)
  File "/usr/lib/python2.6/lib2to3/fixes/", line 18, in match
    (node.value.startswith("0") or node.value[-1] in "Ll"))
AttributeError: 'int' object has no attribute 'startswith'

The code is from a version of pupynere, trimmed to reveal the traceback.
Python 2.6.4, OS: Ubuntu 9.10 (Karmic).
Date User Action Args
2010-04-29 14:57:21rom16384setrecipients: + rom16384
2010-04-29 14:57:20rom16384setmessageid: <>
2010-04-29 14:57:18rom16384linkissue8570 messages
2010-04-29 14:57:17rom16384create