mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fix config writing for python 3
This commit is contained in:
parent
60c03d96d6
commit
abeaa28d13
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ def upgrade_config(config):
|
|||
|
||||
|
||||
def save_config(config):
|
||||
yaml.safe_dump(config, file(CONFIG_FILE_PATH, 'w'), encoding='utf-8', allow_unicode=True, default_flow_style=False)
|
||||
with open(CONFIG_FILE_PATH, 'w') as f:
|
||||
yaml.safe_dump(config, f, encoding='utf-8', allow_unicode=True, default_flow_style=False)
|
||||
|
||||
|
||||
def install_jrnl():
|
||||
|
|
Loading…
Add table
Reference in a new issue