Sitelet https://github.com/tbhi/aws-cli/commit/22ff649c0c65590f9ad16b26c55491e737ae3297
Skip to content

Commit 22ff649

Browse files
committed
Fix py3 bug, only decode if it's a binary type
1 parent a3c5aad commit 22ff649

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎awscli/argparser.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ def parse_known_args(self, args, namespace=None):
5959
elif isinstance(value, list):
6060
encoded = []
6161
for v in value:
62-
encoded.append(v.decode(terminal_encoding))
62+
if isinstance(v, six.binary_type):
63+
encoded.append(v.decode(terminal_encoding))
64+
else:
65+
encoded.append(v)
6366
setattr(parsed, arg, encoded)
6467
return parsed, remaining
6568

0 commit comments

Comments
 (0)