[Python-checkins] r67768 - sandbox/trunk/2to3/lib2to3/fixer_util.py

benjamin.peterson python-checkins at python.org
Sun Dec 14 21:32:30 CET 2008


Author: benjamin.peterson
Date: Sun Dec 14 21:32:30 2008
New Revision: 67768
Log:
use insert_child()
Modified:
 sandbox/trunk/2to3/lib2to3/fixer_util.py
Modified: sandbox/trunk/2to3/lib2to3/fixer_util.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixer_util.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixer_util.py	Sun Dec 14 21:32:30 2008
@@ -300,8 +300,7 @@
 children = [import_, Newline()]
 if add_newline_before:
 children.insert(0, Newline())
- root.changed()
- root.children.insert(insert_pos, Node(syms.simple_stmt, children))
+ root.insert_child(insert_pos, Node(syms.simple_stmt, children))
 
 
 _def_syms = set([syms.classdef, syms.funcdef])


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /