[Python-checkins] distutils2: fixed pytree.Base.next_sibling() lib2to3 backward-compatibility with python <
tarek.ziade
python-checkins at python.org
Sun May 30 00:05:49 CEST 2010
tarek.ziade pushed 315d3560785f to distutils2:
http://hg.python.org/distutils2/rev/315d3560785f
changeset: 163:315d3560785f
user: Nicolas Cadou <ncadou at cadou.ca>
date: Sat May 22 20:22:04 2010 -0400
summary: fixed pytree.Base.next_sibling() lib2to3 backward-compatibility with python < 2.6.5
files: src/distutils2/converter/fixers/fix_setup_options.py
diff --git a/src/distutils2/converter/fixers/fix_setup_options.py b/src/distutils2/converter/fixers/fix_setup_options.py
--- a/src/distutils2/converter/fixers/fix_setup_options.py
+++ b/src/distutils2/converter/fixers/fix_setup_options.py
@@ -43,7 +43,7 @@
name = argument.children[0]
if not hasattr(name, "next_sibling"):
- name.next_sibling = name.get_next_sibling
+ name.next_sibling = name.get_next_sibling()
sibling = name.next_sibling
if sibling is None or sibling.type != token.EQUAL:
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list