mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 09:08:32 +02:00
Fix config writing for python 3
This commit is contained in:
parent
cbab596b43
commit
37ebc473c8
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