Commit a07d6390 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by ntome

config: The underlying storage class may have a sync method

parent 110d1be6
......@@ -45,7 +45,8 @@ class DBMConfig(IConfig):
self.storage = dbm.open(self.path, 'c')
def save(self):
pass
if hasattr(self.storage, 'sync'):
self.storage.sync()
def get(self, *args, **kwargs):
key = '.'.join(args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment