mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
We're no longer trying to support older Python versions with this
codebase, so get rid of the pre-2.2 contingency.
This commit is contained in:
parent
ba8c069eb9
commit
32616cf8ec
1 changed files with 2 additions and 7 deletions
|
|
@ -132,13 +132,8 @@ class LogReader:
|
|||
else:
|
||||
raise ValueError, "unknown event type"
|
||||
|
||||
if sys.version < "2.2":
|
||||
# Don't add this for newer Python versions; we only want iteration
|
||||
# support, not general sequence support.
|
||||
__getitem__ = next
|
||||
else:
|
||||
def __iter__(self):
|
||||
return self
|
||||
def __iter__(self):
|
||||
return self
|
||||
|
||||
#
|
||||
# helpers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue