Skip to content

Commit

Permalink
Merge pull request #4248 from jdufresne/binary-type
Browse files Browse the repository at this point in the history
Remove use of unnecessary compat shim, six.binary_type
  • Loading branch information
crazymerlyn committed Oct 26, 2018
2 parents d59786f + af34164 commit 1d09e1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/4248.trivial.rst
@@ -0,0 +1 @@
Remove use of unnecessary compat shim, six.binary_type
2 changes: 1 addition & 1 deletion src/_pytest/pathlib.py
Expand Up @@ -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)
Expand Down

0 comments on commit 1d09e1d

Please sign in to comment.