fixed python2 compatibility

This commit is contained in:
Fredrik Eriksson 2017-01-22 18:42:37 +01:00
parent 5f31b46cdc
commit f2ae6cecbe

View File

@ -24,7 +24,7 @@ class PasswordLengthError(Exception):
def save_config(target_file, config):
path = os.path.expanduser(target_file)
with open(path, 'w') as f:
config.write(f, False)
config.write(f)
def update_config(
config=None,