fix pipe of message to boobmsg (closes #455)
This commit is contained in:
parent
1edaf7fd9f
commit
983883dc66
1 changed files with 3 additions and 1 deletions
|
|
@ -183,7 +183,9 @@ class Boobmsg(ReplApplication):
|
|||
if text is None:
|
||||
if self.interactive:
|
||||
print 'Reading message content from stdin... Type ctrl-D from an empty line to post message.'
|
||||
text = sys.stdin.read().decode(sys.stdin.encoding)
|
||||
text = sys.stdin.read()
|
||||
if sys.stdin.encoding:
|
||||
text = text.decode(sys.stdin.encoding)
|
||||
|
||||
if self.options.skip_empty and not text.strip():
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue