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
commit 1d09e1d8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Remove use of unnecessary compat shim, six.binary_type

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)