commit | ae650181b89feeb1f68fb7643d190df52d13bd9e | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Jan 28 23:33:59 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Jan 28 23:33:59 2009 +0000 |
tree | 81698da797378fef43e4287b1f3214fe137b97da | |
parent | 1124e71368c73b592020b4896fb1c5d371efbcef [diff] [blame] |
Beef-up tests for collections ABCs.
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index ca82c41..eed8762 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py
@@ -301,7 +301,7 @@ """Return the popped value. Raise KeyError if empty.""" it = iter(self) try: - value = it.__next__() + value = next(it) except StopIteration: raise KeyError self.discard(value)