mirror of https://github.com/ansible/ansible.git
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>pull/73119/head
parent
a469a4455a
commit
e0c75a6756
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- service - Fix for the BSD rcconf code using a Python 2 specific string replace function
|
Loading…
Reference in New Issue