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 9e2f068..335fff9 100644
--- a/Lib/hotshot/log.py
+++ b/Lib/hotshot/log.py
@@ -132,13 +132,8 @@
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