Skip to content

Commit 06cf91e

Browse files
committed
Remove geojseq.open().
1 parent ea323e0 commit 06cf91e

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

geojseq/core.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,6 @@
44
import sys
55

66

7-
def open(path, mode='r', **kwargs):
8-
9-
"""
10-
Open a file containing GeoJSON feature sequences.
11-
12-
Parameters
13-
----------
14-
path : str
15-
Path to file to open. use '-' for stdin and stdout.
16-
mode : str, optional
17-
Read, write, or append data with r, w, and a.
18-
kwargs : **kwargs, optional
19-
Additional keyword arguments for `FeatureStream()`.
20-
21-
Returns
22-
-------
23-
FeatureStream
24-
"""
25-
26-
if path == '-' and mode == 'r':
27-
f = sys.stdin
28-
elif path == '-' and mode in ('w', 'a'):
29-
f = sys.stdout
30-
else:
31-
f = codecs_open(path, mode=mode, encoding='utf-8')
32-
33-
return FeatureStream(f, mode=mode, **kwargs)
34-
35-
367
class FeatureStream(object):
378

389
"""

0 commit comments

Comments
 (0)