Decode bytes to str before call to path_test

Fixes #2443
This commit is contained in:
Stephane Fontaine 2017-02-21 21:29:52 +04:00
parent 6cb9504403
commit d6905fa4c0

View file

@ -988,7 +988,7 @@ class ArchiveImportTask(SentinelImportTask):
`toppath` to that directory.
"""
for path_test, handler_class in self.handlers():
if path_test(self.toppath):
if path_test(util.py3_path(self.toppath)):
break
try: