Matt Clay
37b013aca3
Enable additional pylint rules and resolve issues found. ( #47221 )
...
* Resolve unneeded-not.
* Resolve global-at-module-level.
* Resolve useless-import-alias.
* Resolve bad-whitespace.
* Resolve global-variable-not-assigned.
* Resolve logging-not-lazy.
* Resolve comparison-with-itself.
2018-10-18 13:38:08 -07:00
Joren Vrancken
b954917761
Surround top-level function and class definitions with two blank lines.
2018-07-31 12:06:56 -07: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
300d6482d1
Hashing needs byte strings in python3 ( #17221 )
...
First try at porting this passed in string-types as that worked on
python2. Python3 is more strict so be explicit about converting from
text to bytes
2016-08-24 09:29:59 -07:00
Toshio Kuratomi
a22909c226
Migrate basestring to a python3 compatible type ( #17199 )
2016-08-23 13:13:44 -07:00
Matt Clay
5b79ed77e7
Use to_bytes on filenames in filesystem calls.
2016-03-04 09:08:41 -08:00
James Cammarata
ce3ef7f4c1
Making the switch to v2
2015-05-03 21:47:26 -05:00
Toshio Kuratomi
1011959d88
Move the hashing util functions to their own file to mirror v2
2015-02-02 10:25:09 -08:00