mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2432 from ciupicri/devel-unicode
module_formatter.return_data: use UTF-8 encoding
This commit is contained in:
commit
2e797a5155
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def load_examples_section(text):
|
|||
def return_data(text, options, outputname, module):
|
||||
if options.output_dir is not None:
|
||||
f = open(os.path.join(options.output_dir, outputname % module), 'w')
|
||||
f.write(text)
|
||||
f.write(text.encode('utf-8'))
|
||||
f.close()
|
||||
else:
|
||||
print text
|
||||
|
|
Loading…
Reference in a new issue