diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-14 07:35:02 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-14 07:35:02 (GMT) |
commit | 2d18dafe7492488b94756146cbdae72d66f9a2bb (patch) | |
tree | dbc1cac511d6c7567c39460fbe48c73513946369 /test/Win32/bad-drive.py | |
parent | 0d2f97cc08c78c8e85d9a5e3098477b6b5b0f8e9 (diff) | |
download | SCons-2d18dafe7492488b94756146cbdae72d66f9a2bb.zip SCons-2d18dafe7492488b94756146cbdae72d66f9a2bb.tar.gz SCons-2d18dafe7492488b94756146cbdae72d66f9a2bb.tar.bz2 |
Replace string.uppercase with string.ascii_uppercase to fix test on Python 3.
Diffstat (limited to 'test/Win32/bad-drive.py')
-rw-r--r-- | test/Win32/bad-drive.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Win32/bad-drive.py b/test/Win32/bad-drive.py index 67a287a..5e8e66a 100644 --- a/test/Win32/bad-drive.py +++ b/test/Win32/bad-drive.py @@ -33,7 +33,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import sys -from string import uppercase +from string import ascii_uppercase import TestSCons @@ -44,8 +44,8 @@ if sys.platform != 'win32': test.skip_test(msg) bad_drive = None -for i in range(len(uppercase)-1, -1, -1): - d = uppercase[i] +for i in range(len(ascii_uppercase)-1, -1, -1): + d = ascii_uppercase[i] if not os.path.isdir(d + ':' + os.sep): bad_drive = d + ':' break |