diff options
author | Guido van Rossum <guido@python.org> | 2002-07-18 14:33:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-07-18 14:33:14 (GMT) |
commit | 32616cf8ec7d930024c0031ab7f951d8247bf2fa (patch) | |
tree | 24656416a5ba3dd2306c879c1b67a4a27e5ea11b /Lib/hotshot | |
parent | ba8c069eb90cb6f26bc7746f56074603071d7bd2 (diff) | |
download | cpython-32616cf8ec7d930024c0031ab7f951d8247bf2fa.zip cpython-32616cf8ec7d930024c0031ab7f951d8247bf2fa.tar.gz cpython-32616cf8ec7d930024c0031ab7f951d8247bf2fa.tar.bz2 |
We're no longer trying to support older Python versions with this
codebase, so get rid of the pre-2.2 contingency.
Diffstat (limited to 'Lib/hotshot')
-rw-r--r-- | Lib/hotshot/log.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py index 9e2f068..335fff9 100644 --- a/Lib/hotshot/log.py +++ b/Lib/hotshot/log.py @@ -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 |