You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Lloyd Parkes e0c75a6756
Replace the use of the function string.replace with the method str.replace (#68793)
* Replace the use of the function string.replace() with the method str.replace()
because that's what works for both Python 2 and 3.

* Cleanup the unused string import.

Added a changelog fragment.

* The documentation for os.write() seems a bit iffy, but in Python 3 we
definitely cannot pass it a string and we need to encode it into
bytes.

The Python documentation at
https://docs.python.org/3/howto/pyporting.html#text-versus-binary-data
says that this code will work in Python 2 as well.

Co-authored-by: Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
4 years ago
..
_vendor Rename to ansible-core (#72594) 4 years ago
cli Change role argspec file used by ansible-doc (#72927) 4 years ago
collections saner path dir management (#72648) 4 years ago
compat Updated bundled libraries (#70418) 4 years ago
config Improve deprecations (#72697) 4 years ago
errors Add orig_exc context to error messages (#72677) 4 years ago
executor Add implicit role_complete block instead of role._eor (#72208) 4 years ago
galaxy galaxy: Handle token as dict while loading using yaml (#70911) 4 years ago
inventory Pass the top level dictionaries to combine_vars (#72979) 4 years ago
module_utils [facts] fix version facts on FreeBSD RC/PRERELEASE (#73020) 4 years ago
modules Replace the use of the function string.replace with the method str.replace (#68793) 4 years ago
parsing vault: Read stdin data as binary on python3 (#52229) 4 years ago
playbook import_playbook - change additional params to deprecation (#72987) 4 years ago
plugins Fix reset_connection paramiko, winrm, psrp (#72688) 4 years ago
template Use _wrap_native_text only for builtin STRING_TYPE_FILTERS (#71801) 4 years ago
utils saner path dir management (#72648) 4 years ago
vars Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 4 years ago
__init__.py transparent downstream vendoring (#69850) 4 years ago
constants.py Replace some more FQCNs. 4 years ago
context.py Become plugins (#50991) 5 years ago
keyword_desc.yml Document and warn when max_fail and free are used (#72616) 4 years ago
release.py Bump devel to 2.11.0 (#70121) 4 years ago