Merge pull request #4248 from jdufresne/binary-type

Remove use of unnecessary compat shim, six.binary_type
This commit is contained in:
Ankit Goel
2018-10-27 00:03:16 +05:30
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -159,7 +159,7 @@ def create_cleanup_lock(p):
else:
pid = os.getpid()
spid = str(pid)
if not isinstance(spid, six.binary_type):
if not isinstance(spid, bytes):
spid = spid.encode("ascii")
os.write(fd, spid)
os.close(fd)