Skip to content

Commit ad325ef

Browse files
line-reader accepts a non buffered stream
We create a buffered stream with a buffer size of one.
1 parent 97f75ca commit ad325ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pixie/io.pxi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@
8787
(instance? BufferedInputStream input-stream)
8888
(-> input-stream ->LineReader)
8989

90+
91+
(satisfies? IInputStream input-stream)
92+
(-> input-stream (buffered-input-stream 1) ->LineReader)
93+
9094
:else
9195
(throw [::Exception "Expected a LineReader, UTF8InputStream, or BufferedInputStream"])))
9296

0 commit comments

Comments
 (0)