1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix an encoding bug in copy content = lookup plugin

closes #3518
This commit is contained in:
Serge van Ginderachter 2013-08-08 22:09:45 +02:00 committed by Michael DeHaan
parent 220cc75cd9
commit 9991a530ab

View file

@ -26,6 +26,13 @@ import stat
import tempfile
import pipes
## fixes https://github.com/ansible/ansible/issues/3518
# http://mypy.pythonblogs.com/12_mypy/archive/1253_workaround_for_python_bug_ascii_codec_cant_encode_character_uxa0_in_position_111_ordinal_not_in_range128.html
import sys
reload(sys)
sys.setdefaultencoding("utf8")
class ActionModule(object):
def __init__(self, runner):