diff options
Diffstat (limited to 'markdown/tests/util.py')
-rw-r--r-- | markdown/tests/util.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/markdown/tests/util.py b/markdown/tests/util.py new file mode 100644 index 0000000..3b0175d --- /dev/null +++ b/markdown/tests/util.py @@ -0,0 +1,15 @@ +from ConfigParser import SafeConfigParser + +class MdSyntaxError(Exception): + pass + + +class CustomConfigParser(SafeConfigParser): + def get(self, section, option): + value = SafeConfigParser.get(self, section, option) + if option == 'extensions': + if len(value.strip()): + return value.split(',') + else: + return [] + return value |