@@ -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