diff options
author | Joe Walker <walkerjoseph@google.com> | 2019-03-29 10:22:32 -0700 |
---|---|---|
committer | Joe Walker <walkerjoseph@google.com> | 2019-03-29 10:22:32 -0700 |
commit | ff67045f3c117dd781084ac45e261b2155799578 (patch) | |
tree | 89ea5636c5c303105ef02264106161459f3850c4 | |
parent | 7ef336bf0fda695f34b5574816ab0aef0a32acca (diff) | |
download | boto-ff67045f3c117dd781084ac45e261b2155799578.tar.gz |
removing duplicate `get_utf8_value` method
-rw-r--r-- | boto/utils.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/boto/utils.py b/boto/utils.py index ed782b85..5e047d88 100644 --- a/boto/utils.py +++ b/boto/utils.py @@ -1132,20 +1132,6 @@ def get_utf8able_str(s, errors='strict'): raise TypeError('not expecting type "%s"' % type(s)) -def get_utf8_value(value): - if isinstance(value, bytes): - value.decode('utf-8') - return value - - if not isinstance(value, six.string_types): - value = six.text_type(value) - - if isinstance(value, six.text_type): - value = value.encode('utf-8') - - return value - - def print_to_fd(*objects, **kwargs): """A Python 2/3 compatible analogue to the print function. |