diff options
author | Lee Ball <43632885+catleeball@users.noreply.github.com> | 2019-03-27 16:55:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 16:55:23 -0700 |
commit | 67d878cf5fcdffe11d5a9ccc5dac7d78f6d24752 (patch) | |
tree | 4c102c86061b2372a4ec9b4cd7428e74ff4f4d33 | |
parent | 3f225ea12252960e9c09a42d90b6c2bcade67f46 (diff) | |
download | boto-67d878cf5fcdffe11d5a9ccc5dac7d78f6d24752.tar.gz |
Re-add get_utf8_value with get_utf8able_str implementation
-rw-r--r-- | boto/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/boto/utils.py b/boto/utils.py index 1a503fa7..7dfe0591 100644 --- a/boto/utils.py +++ b/boto/utils.py @@ -1127,6 +1127,15 @@ def get_utf8able_str(s, errors='strict'): raise TypeError('not expecting type "%s"' % type(s)) +def get_utf8_value(self, value): + """This replaces public interface get_utf8_value with new implementation. + + The old implementation of get_utf8_value has been deprecated and replaced + with get_utf8able_str. + """ + return get_utf8able_str(value) + + def print_to_fd(*objects, **kwargs): """A Python 2/3 compatible analogue to the print function. |