Commit 624722ad authored by Daniel STAN's avatar Daniel STAN

umask pour backup

Probablement n'était-ce pas grave (le dossier est safe), mais on est
jamais trop prudent
parent 34887329
...@@ -155,6 +155,7 @@ def rmfile(filename): ...@@ -155,6 +155,7 @@ def rmfile(filename):
def backup(corps, fname, old): def backup(corps, fname, old):
"""Backupe l'ancienne version du fichier""" """Backupe l'ancienne version du fichier"""
back = open(getpath(fname, backup=True), 'a') back = open(getpath(fname, backup=True), 'a')
back.write(json.dumps(old)) back.write(json.dumps(old))
back.write('\n') back.write('\n')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment