summaryrefslogtreecommitdiff
path: root/tests/util.py
blob: aae87be375d8563c500b0d228862a3c35d9e8100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from ConfigParser import SafeConfigParser

class MarkdownSyntaxError(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