diff options
author | Guido van Rossum <guido@python.org> | 2004-05-04 18:18:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2004-05-04 18:18:59 (GMT) |
commit | 843c734ddda3e317eee97dfdd32ff15ceede22fc (patch) | |
tree | a41a511902b487b244788195527cba89dc90a923 /Lib/platform.py | |
parent | bac788a3cd348203a5fdabba52e5faf65bf35c5e (diff) | |
download | cpython-843c734ddda3e317eee97dfdd32ff15ceede22fc.zip cpython-843c734ddda3e317eee97dfdd32ff15ceede22fc.tar.gz cpython-843c734ddda3e317eee97dfdd32ff15ceede22fc.tar.bz2 |
Using reversed() is not compatible with Python 1.5.2.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 573debe..d984402 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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: |