Commit d7b8b096 authored by Jason R. Coombs's avatar Jason R. Coombs

Prefer bytes literal

parent 2ef88b8e
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment