diff options
author | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-05-08 10:06:18 +0100 |
---|---|---|
committer | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-05-08 10:06:18 +0100 |
commit | e6913b2e78be95472e54089915057f917231cee7 (patch) | |
tree | 9be5473c96c22b405bc0d5884fcd1f768114608c /python | |
parent | 4e94277e9d34e5c50c263a74fcf7769b975d1240 (diff) | |
download | brotli-e6913b2e78be95472e54089915057f917231cee7.zip brotli-e6913b2e78be95472e54089915057f917231cee7.tar.gz brotli-e6913b2e78be95472e54089915057f917231cee7.tar.bz2 |
[python] use built-in split instead of 'string' module for py23
In python3, the 'string' module no longer has a 'split' function.
Diffstat (limited to 'python')
-rwxr-xr-x | python/tests/compatibility_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/tests/compatibility_test.py b/python/tests/compatibility_test.py index dd1d10b..668c9ec 100755 --- a/python/tests/compatibility_test.py +++ b/python/tests/compatibility_test.py @@ -1,7 +1,6 @@ #!/usr/bin/env python from __future__ import print_function import glob -import string import sys import os from subprocess import check_call @@ -13,7 +12,7 @@ os.chdir(os.path.abspath("../../tests")) for filename in glob.glob("testdata/*.compressed*"): filename = os.path.abspath(filename) print('Testing decompression of file "%s"' % os.path.basename(filename)) - expected = string.split(filename, ".compressed")[0] + expected = filename.split(".compressed")[0] uncompressed = expected + ".uncompressed" check_call([PYTHON, BRO, "-f", "-d", "-i", filename, "-o", uncompressed], env=TEST_ENV) |