Skip to content

Commit

Permalink
Silly errors in open_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Dec 13, 2016
1 parent e8363fd commit 4c0693b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picamera/mmalobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ def open_stream(stream, output=True, buffering=65536):
# Assume the stream is actually a buffer
opened = True
stream = BufferIO(stream)
if output and not stream.writeable:
if output and not stream.writable:
raise IOError('writeable buffer required for output')
return (stream, output)
return (stream, opened)


def close_stream(stream, opened):
Expand Down

0 comments on commit 4c0693b

Please sign in to comment.