summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Walker <walkerjoseph@google.com>2019-03-29 10:22:32 -0700
committerJoe Walker <walkerjoseph@google.com>2019-03-29 10:22:32 -0700
commitff67045f3c117dd781084ac45e261b2155799578 (patch)
tree89ea5636c5c303105ef02264106161459f3850c4
parent7ef336bf0fda695f34b5574816ab0aef0a32acca (diff)
downloadboto-ff67045f3c117dd781084ac45e261b2155799578.tar.gz
removing duplicate `get_utf8_value` method
-rw-r--r--boto/utils.py14
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.