diff options
Diffstat (limited to '')
-rw-r--r-- | auto-auto-complete.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/auto-auto-complete.py b/auto-auto-complete.py index b3f9985..eaa941d 100644 --- a/auto-auto-complete.py +++ b/auto-auto-complete.py @@ -1,5 +1,30 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- + + + +''' +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) + +@param text:str The text to print (empty string is default) +@param end:str The appendix to the text to print (line breaking is default) +''' +def print(text = '', end = '\n'): + sys.stdout.buffer.write((str(text) + end).encode('utf-8')) + +''' +stderr equivalent to print() + +@param text:str The text to print (empty string is default) +@param end:str The appendix to the text to print (line breaking is default) +''' +def printerr(text = '', end = '\n'): + sys.stderr.buffer.write((str(text) + end).encode('utf-8')) + + if __name__ = '__main__': print('I am so sorry, this is not implement yet.') + |