Commit 8b2d9351 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Vincent A

config: Python 3 compatibility

parent 21e691dc
# -*- coding: utf-8 -*-
import anydbm
import yaml
from .iconfig import ConfigError, IConfig
from .yamlconfig import WeboobDumper
from yaml import CLoader as Loader
except ImportError:
from yaml import Loader
from .yamlconfig import WeboobDumper
import anydbm as dbm
except ImportError:
import dbm
__all__ = ['AnyDBMConfig']
......@@ -21,7 +24,7 @@ class AnyDBMConfig(IConfig):
self.path = path
def load(self, default={}): =, 'c') =, 'c')
def save(self):
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