From e34bb1557a1509bdb94c973f3a54541c4ea92bad Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 20 Feb 2018 11:21:35 -0300 Subject: [PATCH] =?UTF-8?q?Grava=20yaml=20com=20unicode=20na=20exporta?= =?UTF-8?q?=C3=A7=C3=A3o=20de=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/legacy/scripts/exporta_zope/exporta_zope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/legacy/scripts/exporta_zope/exporta_zope.py b/sapl/legacy/scripts/exporta_zope/exporta_zope.py index 1ba4cecc2..63cde7225 100755 --- a/sapl/legacy/scripts/exporta_zope/exporta_zope.py +++ b/sapl/legacy/scripts/exporta_zope/exporta_zope.py @@ -201,7 +201,7 @@ def read_sde(element): def save_as_yaml(path, name, obj): fullname = os.path.join(path, name) with open(fullname, 'w') as arquivo: - yaml.safe_dump(obj, arquivo) + yaml.safe_dump(obj, arquivo, allow_unicode=True) print(fullname) return fullname