diff --git a/diceware/config.py b/diceware/config.py index 127b493572c88bbc8f4b8052444e33248038d6d2..6c4bd501157539a0b2b5737e4781825cb226a70a 100644 --- a/diceware/config.py +++ b/diceware/config.py @@ -20,9 +20,9 @@ direct API calls. """ try: - import configparser # Python 3.x -except ImportError: # pragma: no cover - import ConfigParser as configparser # Python 2.x + import configparser # Python 3.x +except ImportError: # pragma: no cover + import ConfigParser as configparser # Python 2.x OPTIONS_DEFAULTS = dict( @@ -33,3 +33,7 @@ OPTIONS_DEFAULTS = dict( randomsource="system", wordlist="en_8k", ) + + +class DicewareConfigParser(configparser.SafeConfigParser): + pass