This commit is contained in:
Kovid Goyal 2019-04-29 20:40:55 +05:30
commit f6e709d430
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import with_statement
from __future__ import with_statement, print_function
__license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
@ -14,9 +14,12 @@ completion.
import sys, os, shlex, glob, re
from polyglot.builtins import unicode_type
from polyglot.builtins import is_py3, unicode_type
if is_py3:
prints = print
else:
def prints(*args, **kwargs):
'''
Print unicode arguments safely by encoding them to preferred_encoding