@@ -1425,7 +1425,7 @@ def TarFileCheck(infile):
14251425 except TypeError :
14261426 try :
14271427 # Check if the input is a file object
1428- if hasattr (infile , ' read' ):
1428+ if hasattr (infile , " read" ):
14291429 # Save the current file position
14301430 current_position = infile .tell ()
14311431 # Attempt to open the file object as a tar file
@@ -1451,7 +1451,7 @@ def TarFileCheckAlt(infile):
14511451 pass
14521452 try :
14531453 # Check if the input is a file-like object
1454- if hasattr (infile , ' read' ):
1454+ if hasattr (infile , " read" ):
14551455 # Save the current file position
14561456 current_position = infile .tell ()
14571457 # Attempt to open the file object as a tar file
@@ -1476,7 +1476,7 @@ def ZipFileCheck(infile):
14761476 pass
14771477 try :
14781478 # Check if the input is a file-like object
1479- if hasattr (infile , ' read' ):
1479+ if hasattr (infile , " read" ):
14801480 # Save the current file position
14811481 current_position = infile .tell ()
14821482 # Attempt to open the file object as a zip file
@@ -1501,7 +1501,7 @@ def RarFileCheck(infile):
15011501 pass
15021502 try :
15031503 # Check if the input is a file-like object
1504- if hasattr (infile , ' read' ):
1504+ if hasattr (infile , " read" ):
15051505 # Save the current file position
15061506 current_position = infile .tell ()
15071507 # Attempt to open the file object as a rar file
@@ -1521,7 +1521,7 @@ def RarFileCheck(infile):
15211521def SevenZipFileCheck (infile ):
15221522 try :
15231523 # Check if the input is a file-like object
1524- if hasattr (infile , ' read' ):
1524+ if hasattr (infile , " read" ):
15251525 # Save the current file position
15261526 current_position = infile .tell ()
15271527 # Attempt to open the file object as a 7z file
0 commit comments