Skip to content

Commit ae607d0

Browse files
authored
use six.string_types for compatible check (#627)
as pointed out in #617 (review)
1 parent a1cf66c commit ae607d0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tox/_pytestplugin.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,7 @@ def initproj(request, tmpdir):
295295
def initproj(nameversion, filedefs=None, src_root="."):
296296
if filedefs is None:
297297
filedefs = {}
298-
if (
299-
isinstance(nameversion, six.text_type) or
300-
isinstance(nameversion, bytes)
301-
):
298+
if isinstance(nameversion, six.string_types):
302299
parts = nameversion.split("-")
303300
if len(parts) == 1:
304301
parts.append("0.1")

0 commit comments

Comments
 (0)