summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imgfile.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 (GMT)
commitfc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch)
tree3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/test/test_imgfile.py
parentd8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff)
downloadcpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.zip
cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz
cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/test/test_imgfile.py')
-rwxr-xr-xLib/test/test_imgfile.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_imgfile.py b/Lib/test/test_imgfile.py
index 8eb330d..26f6186 100755
--- a/Lib/test/test_imgfile.py
+++ b/Lib/test/test_imgfile.py
@@ -30,7 +30,6 @@ def testimage(name):
import sys
import os
- import string
outputfile = '/tmp/deleteme'
@@ -47,9 +46,9 @@ def testimage(name):
else: # ...or the full path of the module
ourname = sys.modules[__name__].__file__
- parts = string.splitfields(ourname, os.sep)
+ parts = ourname.split(os.sep)
parts[-1] = name
- name = string.joinfields(parts, os.sep)
+ name = os.sep.joinfields(parts)
sizes = imgfile.getsizes(name)
if verbose:
print 'Opening test image: %s, sizes: %s' % (name, str(sizes))