Commit 32616cf8 authored by Guido van Rossum's avatar Guido van Rossum

We're no longer trying to support older Python versions with this

codebase, so get rid of the pre-2.2 contingency.
parent ba8c069e
......@@ -132,11 +132,6 @@ 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment