Merge pull request #4248 from jdufresne/binary-type
Remove use of unnecessary compat shim, six.binary_type
This commit is contained in:
commit
1d09e1d8ce
|
@ -0,0 +1 @@
|
|||
Remove use of unnecessary compat shim, six.binary_type
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue