Permalink
Browse files

퍼미션 저장할 때 유니코드로 저장

  • Loading branch information...
ipari committed Sep 5, 2018
1 parent 8b228b5 commit c40f213147be0c31431176005d78e2f9cb923a47
Showing with 2 additions and 2 deletions.
  1. +2 −2 features/permission.py
@@ -25,7 +25,7 @@ def set_permission(page_path, value):
permissions = page_permissions()
permissions[page_path] = permission
with open(permission_path(), 'w') as f:
yaml.dump(permissions, f, default_flow_style=False)
yaml.dump(permissions, f, default_flow_style=False, allow_unicode=True)
else:
delete_permission(page_path)
@@ -38,4 +38,4 @@ def delete_permission(page_path):
except KeyError:
pass
with open(permission_path(), 'w') as f:
yaml.dump(permissions, f, default_flow_style=False)
yaml.dump(permissions, f, default_flow_style=False, allow_unicode=True)

0 comments on commit c40f213

Please sign in to comment.