[Python-checkins] python/dist/src/Lib platform.py,1.12,1.13

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Tue May 4 14:19:01 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17624

Modified Files:
	platform.py 
Log Message:
Using reversed() is not compatible with Python 1.5.2.


Index: platform.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/platform.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** platform.py	25 Mar 2004 18:35:12 -0000	1.12
--- platform.py	4 May 2004 18:18:59 -0000	1.13
***************
*** 203,207 ****
          # Check for slackware verson tag file (thanks to Greg Andruk)
          verfiles = os.listdir('/usr/lib/setup')
!         for n in reversed(xrange(len(verfiles))):
              if verfiles[n][:14] != 'slack-version-':
                  del verfiles[n]
--- 203,207 ----
          # Check for slackware verson tag file (thanks to Greg Andruk)
          verfiles = os.listdir('/usr/lib/setup')
!         for n in range(len(verfiles)-1, -1, -1):
              if verfiles[n][:14] != 'slack-version-':
                  del verfiles[n]




More information about the Python-checkins mailing list