]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Using reversed() is not compatible with Python 1.5.2.
authorGuido van Rossum <guido@python.org>
Tue, 4 May 2004 18:18:23 +0000 (18:18 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 May 2004 18:18:23 +0000 (18:18 +0000)
Lib/platform.py

index 3dc9106fe9fde3db0d545d9fed1ea88345a10b36..2978be25a8399a53be154244a708850db63351e8 100755 (executable)
@@ -202,7 +202,7 @@ def _dist_try_harder(distname,version,id):
     if os.path.isdir('/usr/lib/setup'):
         # Check for slackware verson tag file (thanks to Greg Andruk)
         verfiles = os.listdir('/usr/lib/setup')
-        for n in reversed(xrange(len(verfiles))):
+        for n in range(len(verfiles)-1, -1, -1):
             if verfiles[n][:14] != 'slack-version-':
                 del verfiles[n]
         if verfiles: