From ab6f498c9f60dd5d914134a387144beabf6ce48c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 19 Aug 2012 19:49:06 +0200 Subject: better (yes this is weird) --- ponysay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ponysay.py') 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 -- cgit