Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 05107e1

Browse files
committed
Bugfix on elif
1 parent ebf25dd commit 05107e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lucid/misc/io/reading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ def read_handle(url, cache=None, mode="rb"):
110110
else:
111111
if scheme in ("http", "https"):
112112
handle = _handle_web_url(url, mode=mode)
113-
if scheme in ("gs"):
113+
elif scheme in ("gs"):
114114
handle = _handle_gfile(url, mode=mode)
115115
else:
116-
handle = os.open(url, mode=mode)
116+
handle = open(url, mode=mode)
117117

118118
yield handle
119119
handle.close()

0 commit comments

Comments
 (0)