Skip to content

Commit 244188c

Browse files
committed
Merge pull request #453 from thomasmulvaney/make-tty-example-work
line-reader accepts a non buffered stream
2 parents 97f75ca + ad325ef commit 244188c

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)