mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-16 17:44:23 +01:00
allow print() without text
This commit is contained in:
parent
e7ed3be525
commit
d14ad81de1
1 changed files with 1 additions and 1 deletions
2
ponysay
2
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)
|
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'))
|
sys.stdout.buffer.write((text + end).encode('utf-8'))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue