aboutsummaryrefslogtreecommitdiff
path: root/ponysay.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-19 19:49:06 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-19 19:49:06 +0200
commitab6f498c9f60dd5d914134a387144beabf6ce48c (patch)
tree57ba9db6d5ee18e80564b5312abc541a6f0d510e /ponysay.py
parent24eb3cbcf68e1ed034432d107aa6519386a99307 (diff)
downloadponysay-ab6f498c9f60dd5d914134a387144beabf6ce48c.tar.gz
ponysay-ab6f498c9f60dd5d914134a387144beabf6ce48c.tar.bz2
ponysay-ab6f498c9f60dd5d914134a387144beabf6ce48c.zip
better (yes this is weird)
Diffstat (limited to 'ponysay.py')
-rwxr-xr-xponysay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay.py b/ponysay.py
index 6fb522a..357ed46 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -366,7 +366,7 @@ class Ponysay():
'''
def print_pony(self, args):
if args.message == None:
- msg = sys.stdin.read().strip()
+ msg = ''.join(sys.stdin.readlines()).strip()
else:
msg = args.message