diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-09 02:50:30 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-09 02:50:30 -0500 |
commit | d7b8b096a206b178d588049a396d5687dbe7235a (patch) | |
tree | 5641d2ff156966c2cfe8e2d7fbaa0b4335dfc1f9 /setuptools/command/build_py.py | |
parent | 2ef88b8e709f0c090a3f7f8c7f612aacbbcd648f (diff) | |
download | external_python_setuptools-d7b8b096a206b178d588049a396d5687dbe7235a.tar.gz external_python_setuptools-d7b8b096a206b178d588049a396d5687dbe7235a.tar.bz2 external_python_setuptools-d7b8b096a206b178d588049a396d5687dbe7235a.zip |
Prefer bytes literal
Diffstat (limited to 'setuptools/command/build_py.py')
-rw-r--r-- | setuptools/command/build_py.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index c971626c..f0d76705 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -161,7 +161,7 @@ class build_py(orig.build_py, Mixin2to3): with io.open(init_py, 'rb') as f: contents = f.read() - if 'declare_namespace'.encode() not in f.read(): + if b'declare_namespace' not in f.read(): from distutils.errors import DistutilsError raise DistutilsError( |