@@ -3099,7 +3099,11 @@ def MakeEmptyFilePointer(fp, fmttype=__file_format_default__, checksumtype="crc3
30993099 return fp
31003100
31013101
3102- def MakeEmptyArchiveFilePointer (fp , fmttype = "auto" , checksumtype = "crc32" , formatspecs = __file_format_multi_dict__ ):
3102+ def MakeEmptyArchiveFilePointer (fp , fmttype = __file_format_default__ , checksumtype = "crc32" , formatspecs = __file_format_multi_dict__ ):
3103+ return MakeEmptyFilePointer (fp , fmttype , checksumtype , formatspecs )
3104+
3105+
3106+ def MakeEmptyFile (outfile , fmttype = "auto" , compression = "auto" , compresswholefile = True , compressionlevel = None , checksumtype = "crc32" , formatspecs = __file_format_dict__ , returnfp = False ):
31033107 if (IsNestedDict (formatspecs ) and fmttype == "auto" and
31043108 (outfile != "-" and outfile is not None and not hasattr (outfile , "read" ) and not hasattr (outfile , "write" ))):
31053109 get_in_ext = os .path .splitext (outfile )
@@ -3118,10 +3122,6 @@ def MakeEmptyArchiveFilePointer(fp, fmttype="auto", checksumtype="crc32", format
31183122 elif (IsNestedDict (formatspecs ) and fmttype not in formatspecs ):
31193123 fmttype = __file_format_default__
31203124 formatspecs = formatspecs [fmttype ]
3121- return MakeEmptyFilePointer (fp , fmttype , checksumtype , formatspecs )
3122-
3123-
3124- def MakeEmptyFile (outfile , compression = "auto" , compresswholefile = True , compressionlevel = None , checksumtype = "crc32" , formatspecs = __file_format_dict__ , returnfp = False ):
31253125 if (outfile != "-" and outfile is not None and not hasattr (outfile , "read" ) and not hasattr (outfile , "write" )):
31263126 if (os .path .exists (outfile )):
31273127 try :
0 commit comments