Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Jun 16, 2024
1 parent c7de831 commit 78e250f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
except ImportError:
import json;

try:
basestring;
except NameError:
basestring = str;

# URL Parsing
try:
from urllib.parse import urlparse, urlunparse;
Expand Down Expand Up @@ -4986,7 +4991,13 @@ def ArchiveFileValidate(infile, formatspecs=__file_format_dict__, verbose=False,
valid_archive = True;
invalid_archive = False;
if(verbose):
VerbosePrintOut(infile);
if(hasattr(infile, "read") or hasattr(infile, "write")):
try:
VerbosePrintOut(infile.name);
except AttributeError:
VerbosePrintOut(infile);
else:
VerbosePrintOut(infile);
VerbosePrintOut("Number of Records " + str(fnumfiles));
if(fprechecksum==catfileheadercshex):
if(verbose):
Expand Down

0 comments on commit 78e250f

Please sign in to comment.