Skip to content

Commit

Permalink
Fixed pipe input error.
Browse files Browse the repository at this point in the history
  • Loading branch information
crcollins committed Aug 10, 2012
1 parent 9ad4e6f commit 1c7f458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documents/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def run(shell, args):
for x in xrange(20):
shell.stdout.write(x)
shell.stdout.write(str(x))
time.sleep(1*random.random())

def help():
Expand Down
2 changes: 1 addition & 1 deletion kernel/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def set_writer(self, callback):

def write(self, value):
if not self.closed:
self.value.extend(value.split("\n"))
self.value.extend(str(value).split("\n"))

def read(self):
line = ''
Expand Down

0 comments on commit 1c7f458

Please sign in to comment.