mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix more unbound locals in code paths that do not seem to be used.
This commit is contained in:
parent
bd564c3c21
commit
cd4a21bb8e
3 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue