Dag Wieers
c6533d4da9
utils/unicode: PEP8 compliancy ( #24668 )
...
- Make PEP8 compliant
2017-05-16 15:24:22 +01:00
Toshio Kuratomi
4ed88512e4
Move uses of to_bytes, to_text, to_native to use the module_utils version ( #17423 )
...
We couldn't copy to_unicode, to_bytes, to_str into module_utils because
of licensing. So once created it we had two sets of functions that did
the same things but had different implementations. To remedy that, this
change removes the ansible.utils.unicode versions of those functions.
2016-09-06 22:54:17 -07:00
Toshio Kuratomi
a22909c226
Migrate basestring to a python3 compatible type ( #17199 )
2016-08-23 13:13:44 -07:00
vlna
53ac89e40d
Typo fix: Kuraotmi -> Kuratomi
2016-06-06 15:24:44 +02:00
Toshio Kuratomi
b67e51ea06
Information on when to use to_str() and what a native string is
2015-10-19 09:28:43 -07:00
Toshio Kuratomi
baa309309d
Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version.
2015-10-16 08:21:28 -07:00
Marius Gedminas
ab569cea22
Move to_str alias into ansible.utils.unicode
...
@abadger suggested on IRC that it's useful enough to go into
ansible.utils.unicode.
2015-10-15 10:27:38 +03:00
Marius Gedminas
eb99aa8c68
Fix to_bytes(None) on Python 3
...
You cannot call bytes(obj) to get a simple representation of obj on
Python 3! E.g. bytes(42) returns a byte string with 42 NUL characters
instead of b'42'.
2015-08-27 22:15:56 +03:00
James Cammarata
ce3ef7f4c1
Making the switch to v2
2015-05-03 21:47:26 -05:00
Toshio Kuratomi
9d605171a7
Didn't port isbasestring/isunicodestring from kitchen so switch to isinstance
2015-02-12 13:55:27 -08:00
Toshio Kuratomi
a04138a887
Add v2's unicode.py to utils so we can use unicode_wrap in the filter_plugins
2015-02-02 19:09:08 -08:00