summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/hotshot/log.py9
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