diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-08-27 02:32:47 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-08-27 02:32:47 +0200 |
commit | d14ad81de1f4e7350cdef57e655375b4f7ffefc9 (patch) | |
tree | a7065dec14906a59bea011a55d5340152d7211de /ponysay | |
parent | e7ed3be525038c49c4e94bd285d09a7d834e8299 (diff) | |
download | ponysay-d14ad81de1f4e7350cdef57e655375b4f7ffefc9.tar.gz ponysay-d14ad81de1f4e7350cdef57e655375b4f7ffefc9.tar.bz2 ponysay-d14ad81de1f4e7350cdef57e655375b4f7ffefc9.zip |
allow print() without text
Diffstat (limited to 'ponysay')
-rwxr-xr-x | ponysay | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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')) |