From: Stefano Rivera <stefanor@debian.org>
Date: Thu, 8 Oct 2015 10:29:41 -0700
Subject: In Python 3, args are already decoded

Forwarded: https://github.com/pwaller/pyfiglet/pull/45
Last-Updated: 2015-07-03
---
 pyfiglet/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyfiglet/__init__.py b/pyfiglet/__init__.py
index a33eaf8..ff0bea5 100755
--- a/pyfiglet/__init__.py
+++ b/pyfiglet/__init__.py
@@ -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)
 
