mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 02:32:59 +00:00
fixup
This commit is contained in:
parent
18c0210704
commit
b53db648bf
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import io
|
||||||
from .handle_open import handle_open
|
from .handle_open import handle_open
|
||||||
|
|
||||||
def readfile(filepath, transparent_gzip=True):
|
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()
|
content = handle.read()
|
||||||
handle.close()
|
handle.close()
|
||||||
return content
|
return content
|
Loading…
Reference in a new issue