# ConfigParser wrapper providing compatibility layer for python 2.7/3 try: python3 = True import configparser as cp except ImportError: python3 = False import ConfigParser as cp from StringIO import StringIO import re class Error(cp.Error): pass if python3: class ConfigParser(cp.ConfigParser): pass else: class ConfigParser(cp.ConfigParser): def __init__(self, delimiters=None, inline_comment_prefixes=None, strict=False, *args, **kwargs): delims = "".join(list(delimiters)) # REs taken from the python-2.7 ConfigParser self.OPTCRE = re.compile( r'(?P