From d14ad81de1f4e7350cdef57e655375b4f7ffefc9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 27 Aug 2012 02:32:47 +0200 Subject: allow print() without text --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ponysay') diff --git a/ponysay b/ponysay index 1efa018..3695607 100755 --- a/ponysay +++ b/ponysay @@ -40,7 +40,7 @@ VERSION = 'dev' # this line should not be edited, it is fixed by the build syst ''' Hack to enforce UTF-8 in output (in the future, if you see anypony not using utf-8 in programs by default, report them to Princess Celestia so she can banish them to the moon) ''' -def print(text, end = '\n'): +def print(text = '', end = '\n'): sys.stdout.buffer.write((text + end).encode('utf-8')) -- cgit