diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 19:10:11 +0200 |
|---|---|---|
| committer | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 19:10:11 +0200 |
| commit | 796abd8dbec884cedf326cb5f85512a5d5648c4e (patch) | |
| tree | cacbbdc28822b519f87b679a8262687421d13c01 /setuptools/tests/test_setopt.py | |
| parent | 7e97def47723303fafabe48b22168bbc11bb4821 (diff) | |
| download | python-setuptools-git-796abd8dbec884cedf326cb5f85512a5d5648c4e.tar.gz | |
Fix for Python 4: replace unsafe six.PY3 with PY2
Diffstat (limited to 'setuptools/tests/test_setopt.py')
| -rw-r--r-- | setuptools/tests/test_setopt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_setopt.py b/setuptools/tests/test_setopt.py index 3fb04fb4..1b038954 100644 --- a/setuptools/tests/test_setopt.py +++ b/setuptools/tests/test_setopt.py @@ -15,7 +15,7 @@ class TestEdit: def parse_config(filename): parser = configparser.ConfigParser() with io.open(filename, encoding='utf-8') as reader: - (parser.read_file if six.PY3 else parser.readfp)(reader) + (parser.readfp if six.PY2 else parser.read_file)(reader) return parser @staticmethod |
