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 15, 2024
1 parent 5296651 commit 12e1444
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2751,6 +2751,10 @@ def UncompressFile(infile, formatspecs=__file_format_dict__, mode="rb"):
filefp = open(infile, mode);
except FileNotFoundError:
return False;
try:
filefp.write_through = True;
except AttributeError:
pass;
return filefp;

def UncompressString(infile):
Expand Down Expand Up @@ -3025,6 +3029,10 @@ def CompressOpenFile(outfile, compressionenable=True, compressionlevel=None):
outfp = ZlibFile(outfile, mode=mode, level=compressionlevel);
except FileNotFoundError:
return False;
try:
outfp.write_through = True;
except AttributeError:
pass;
return outfp;

def GetDevMajorMinor(fdev):
Expand Down

0 comments on commit 12e1444

Please sign in to comment.