Commit 1a34ea7f authored by Stefano Rivera's avatar Stefano Rivera Committed by SVN-Git Migration

In Python 3, args are already decoded

Forwarded: https://github.com/pwaller/pyfiglet/pull/45
Last-Updated: 2015-07-03

Patch-Name: py3k.diff
parent 451d1c7a
......@@ -791,7 +791,8 @@ def main():
parser.print_help()
return 1
args = map(lambda arg: arg.decode(sys.stdout.encoding), args)
if sys.version_info < (3,):
args = [arg.decode('UTF-8') for arg in args]
text = ' '.join(args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment