From 32616cf8ec7d930024c0031ab7f951d8247bf2fa Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 18 Jul 2002 14:33:14 +0000 Subject: We're no longer trying to support older Python versions with this codebase, so get rid of the pre-2.2 contingency. --- Lib/hotshot/log.py | 9 ++------- 1 file 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 -- cgit v0.12