X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2228890d6210e10d9ea3c24cb123a4d6b47f36b9..c4d2db43231cb927c89a403e2837b7fee92a6ad5:/blib2to3/pytree.py?ds=sidebyside diff --git a/blib2to3/pytree.py b/blib2to3/pytree.py index b24866e..4da5700 100644 --- a/blib2to3/pytree.py +++ b/blib2to3/pytree.py @@ -132,6 +132,8 @@ class Base(object): return node.lineno def changed(self): + if self.was_changed: + return if self.parent: self.parent.changed() self.was_changed = True @@ -333,7 +335,7 @@ class Leaf(Base): # Default values for instance variables _prefix = "" # Whitespace and comments preceding this token in the input lineno = 0 # Line where this token starts in the input - column = 0 # Column where this token tarts in the input + column = 0 # Column where this token starts in the input def __init__(self, type, value, context=None,