[Python-checkins] python/dist/src/Lib/hotshot log.py,1.6,1.7

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 18 Jul 2002 07:33:17 -0700


Update of /cvsroot/python/python/dist/src/Lib/hotshot
In directory usw-pr-cvs1:/tmp/cvs-serv8846

Modified Files:
	log.py 
Log Message:
We're no longer trying to support older Python versions with this
codebase, so get rid of the pre-2.2 contingency.


Index: log.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hotshot/log.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** log.py	29 May 2002 19:40:36 -0000	1.6
--- log.py	18 Jul 2002 14:33:14 -0000	1.7
***************
*** 133,143 ****
                  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
  
      #
--- 133,138 ----
                  raise ValueError, "unknown event type"
  
!     def __iter__(self):
!         return self
  
      #