Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Jan 24, 2025
1 parent 183c948 commit c81f396
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3099,7 +3099,11 @@ def MakeEmptyFilePointer(fp, fmttype=__file_format_default__, checksumtype="crc3
return fp


def MakeEmptyArchiveFilePointer(fp, fmttype="auto", checksumtype="crc32", formatspecs=__file_format_multi_dict__):
def MakeEmptyArchiveFilePointer(fp, fmttype=__file_format_default__, checksumtype="crc32", formatspecs=__file_format_multi_dict__):
return MakeEmptyFilePointer(fp, fmttype, checksumtype, formatspecs)


def MakeEmptyFile(outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, checksumtype="crc32", formatspecs=__file_format_dict__, returnfp=False):
if(IsNestedDict(formatspecs) and fmttype=="auto" and
(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write"))):
get_in_ext = os.path.splitext(outfile)
Expand All @@ -3118,10 +3122,6 @@ def MakeEmptyArchiveFilePointer(fp, fmttype="auto", checksumtype="crc32", format
elif(IsNestedDict(formatspecs) and fmttype not in formatspecs):
fmttype = __file_format_default__
formatspecs = formatspecs[fmttype]
return MakeEmptyFilePointer(fp, fmttype, checksumtype, formatspecs)


def MakeEmptyFile(outfile, compression="auto", compresswholefile=True, compressionlevel=None, checksumtype="crc32", formatspecs=__file_format_dict__, returnfp=False):
if(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write")):
if(os.path.exists(outfile)):
try:
Expand Down

0 comments on commit c81f396

Please sign in to comment.