Skip to content

Commit afeebf8

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pycatfile.py
1 parent 0cfd4f2 commit afeebf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pycatfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8828,7 +8828,7 @@ def UnPackArchiveFile(infile, outdir=None, followlink=False, seekstart=0, seeken
88288828
if(isinstance(infile, dict)):
88298829
listcatfiles = infile
88308830
else:
8831-
if(infile != "-" and not hasattr(infile, "read") and not hasattr(infile, "write")):
8831+
if(infile != "-" and not hasattr(infile, "read") and not hasattr(infile, "write") and not (sys.version_info[0] >= 3 and isinstance(infile, bytes))):
88328832
infile = RemoveWindowsPath(infile)
88338833
listcatfiles = ArchiveFileToArray(
88348834
infile, seekstart, seekend, False, True, skipchecksum, formatspecs, returnfp)
@@ -9099,7 +9099,7 @@ def ArchiveFileListFiles(infile, seekstart=0, seekend=0, skipchecksum=False, for
90999099
if(isinstance(infile, dict)):
91009100
listcatfiles = infile
91019101
else:
9102-
if(infile != "-" and not hasattr(infile, "read") and not hasattr(infile, "write")):
9102+
if(infile != "-" and not hasattr(infile, "read") and not hasattr(infile, "write") and not (sys.version_info[0] >= 3 and isinstance(infile, bytes))):
91039103
infile = RemoveWindowsPath(infile)
91049104
listcatfiles = ArchiveFileToArray(
91059105
infile, seekstart, seekend, True, False, skipchecksum, formatspecs, returnfp)

0 commit comments

Comments
 (0)