This commit is contained in:
Starbeamrainbowlabs 2022-12-08 18:31:42 +00:00
parent 18c0210704
commit b53db648bf
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -3,7 +3,7 @@ import io
from .handle_open import handle_open
def readfile(filepath, transparent_gzip=True):
handle = io.open(filepath, "r") if transparent_gzip else handle_open(filepath, "r")
handle = handle_open(filepath, "r") if transparent_gzip else io.open(filepath, "r")
content = handle.read()
handle.close()
return content