diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 12:03:45 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 12:03:45 (GMT) |
commit | 83ff7498272c5f3acbda9b3cad0e2044ab7547c2 (patch) | |
tree | abf864e31d01e45936b80e72d273d5abc7393eb2 /Lib/test/test_zlib.py | |
parent | 2846b0ab417dbfc76d2f9b52b5613ad4fe8feb63 (diff) | |
download | cpython-83ff7498272c5f3acbda9b3cad0e2044ab7547c2.zip cpython-83ff7498272c5f3acbda9b3cad0e2044ab7547c2.tar.gz cpython-83ff7498272c5f3acbda9b3cad0e2044ab7547c2.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r-- | Lib/test/test_zlib.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 7f01114..c672ef7 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -1,7 +1,6 @@ import zlib import sys import imp -import string try: t = imp.find_module('test_zlib') @@ -57,7 +56,7 @@ bufs = [] for i in range(0, len(buf), 256): bufs.append(co.compress(buf[i:i+256])) bufs.append(co.flush()) -combuf = string.join(bufs, '') +combuf = ''.join(bufs) decomp1 = zlib.decompress(combuf, -12, -5) if decomp1 != buf: @@ -70,7 +69,7 @@ bufs = [] for i in range(0, len(combuf), 128): bufs.append(deco.decompress(combuf[i:i+128])) bufs.append(deco.flush()) -decomp2 = string.join(buf, '') +decomp2 = ''.join(buf) if decomp2 != buf: print "decompressobj with init options failed" else: |