diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-14 05:56:37 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-14 15:03:46 -0700 |
commit | 4f165ed9d35ea7e37823bec25ed822338387c0be (patch) | |
tree | 1743f721fa3448aab482b4ed6afe3e48986f7847 /setuptools/tests/files.py | |
parent | 9a2cb89a1c733343c7040073a799d0cd782e435e (diff) | |
download | external_python_setuptools-4f165ed9d35ea7e37823bec25ed822338387c0be.tar.gz external_python_setuptools-4f165ed9d35ea7e37823bec25ed822338387c0be.tar.bz2 external_python_setuptools-4f165ed9d35ea7e37823bec25ed822338387c0be.zip |
Remove use of compatibility shim six.binary_type
The type bytes is available on all supported Pythons. Makes the code
more forward compatible with Python 3.
Diffstat (limited to 'setuptools/tests/files.py')
-rw-r--r-- | setuptools/tests/files.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/tests/files.py b/setuptools/tests/files.py index f5f0e6bb..465a6b41 100644 --- a/setuptools/tests/files.py +++ b/setuptools/tests/files.py @@ -1,7 +1,6 @@ import os -from setuptools.extern.six import binary_type import pkg_resources.py31compat @@ -31,7 +30,7 @@ def build_files(file_defs, prefix=""): pkg_resources.py31compat.makedirs(full_name, exist_ok=True) build_files(contents, prefix=full_name) else: - if isinstance(contents, binary_type): + if isinstance(contents, bytes): with open(full_name, 'wb') as f: f.write(contents) else: |