diff options
| author | Georg Brandl <georg@python.org> | 2010-02-06 23:34:10 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-02-06 23:34:10 (GMT) |
| commit | cd4a21bb8ea184c32d33d534d42bc08b57b405fb (patch) | |
| tree | 68a3315c73b810b11ab07509f5320f49f46b8694 /Lib/test/test_minidom.py | |
| parent | bd564c3c21ef4c6d6cb0070870edd9d2f7c89d11 (diff) | |
| download | cpython-cd4a21bb8ea184c32d33d534d42bc08b57b405fb.zip cpython-cd4a21bb8ea184c32d33d534d42bc08b57b405fb.tar.gz cpython-cd4a21bb8ea184c32d33d534d42bc08b57b405fb.tar.bz2 | |
Fix more unbound locals in code paths that do not seem to be used.
Diffstat (limited to 'Lib/test/test_minidom.py')
| -rw-r--r-- | Lib/test/test_minidom.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index b95438d..7ccb8f4 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -1456,12 +1456,13 @@ class MinidomTest(unittest.TestCase): self.confirm(len(n1.entities) == len(n2.entities) and len(n1.notations) == len(n2.notations)) for i in range(len(n1.notations)): + # XXX this loop body doesn't seem to be executed? no1 = n1.notations.item(i) no2 = n1.notations.item(i) self.confirm(no1.name == no2.name and no1.publicId == no2.publicId and no1.systemId == no2.systemId) - statck.append((no1, no2)) + stack.append((no1, no2)) for i in range(len(n1.entities)): e1 = n1.entities.item(i) e2 = n2.entities.item(i) |
