From: Guido van Rossum Date: Thu, 18 Jul 2002 14:33:14 +0000 (+0000) Subject: We're no longer trying to support older Python versions with this X-Git-Tag: v2.3c1~4959 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32616cf8ec7d930024c0031ab7f951d8247bf2fa;p=thirdparty%2FPython%2Fcpython.git We're no longer trying to support older Python versions with this codebase, so get rid of the pre-2.2 contingency. --- diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py index 9e2f0688969b..335fff90fffa 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