Message76311
When trying to run 2to3 on Django, I get a traceback
File "/tmp/py3/lib/python3.0/lib2to3/refactor.py", line 260, in
refactor_string
self.refactor_tree(tree, name)
File "/tmp/py3/lib/python3.0/lib2to3/refactor.py", line 299, in
refactor_tree
self.traverse_by(self.post_order, tree.post_order())
File "/tmp/py3/lib/python3.0/lib2to3/refactor.py", line 323, in
traverse_by
new = fixer.transform(node, results)
File "/tmp/py3/lib/python3.0/lib2to3/fixes/fix_metaclass.py", line
156, in transform
for suite, i, stmt in find_metas(node):
File "/tmp/py3/lib/python3.0/lib2to3/fixes/fix_metaclass.py", line
114, in find_metas
if leaf_node.value == '__metaclass__':
AttributeError: 'Node' object has no attribute 'value'
The smallest example reproducing this is
class Model(object):
__metaclass__ = ModelBase
save.alters_data = True |
|
Date |
User |
Action |
Args |
2008-11-24 09:02:06 | loewis | set | recipients:
+ loewis |
2008-11-24 09:02:06 | loewis | set | messageid: <1227517326.18.0.828990199239.issue4405@psf.upfronthosting.co.za> |
2008-11-24 09:02:04 | loewis | link | issue4405 messages |
2008-11-24 09:02:03 | loewis | create | |
|