mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-25 23:45:01 +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
|
||||
|
||||
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
|
Loading…
Reference in a new issue