Skip to content

Commit

Permalink
Remove extra six usage in compat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Jun 20, 2024
1 parent d8eec1b commit 341a42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awscli/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def __exit__(self, type, value, traceback):


def ensure_text_type(s):
if isinstance(s, six.text_type):
if isinstance(s, str):
return s
if isinstance(s, six.binary_type):
if isinstance(s, bytes):
return s.decode('utf-8')
raise ValueError("Expected str, unicode or bytes, received %s." % type(s))

Expand Down

0 comments on commit 341a42d

Please sign in to comment.