def __init__(self, options, default):
        # Handle the options.
        self.default = default
        args, kwargs = [], {}
        if options:
            for key, val in OPTIONS_PARSER.findall(options):
                if val.lower() == 'none':
                    val = None
                elif val.lower() == 'true':
                    val = True
                elif val.lower() == 'false':
                    val = False
                else:
                    try:
                        val = int(val)
                    except ValueError:
                        try:
                            val = float(val)
                        except ValueError:
                            pass

                if isinstance(val, basestring):
                    val = val
                    if (val[0] == '"' and val[-1] == '"') or \
                            (val[0] == "'" and val[-1] == "'"):
                        val = val[1:-1]

                if key:
                    kwargs[key] = val
                else:
                    args.append(val)

        # Now, configure it with those settings.
        #noinspection PyArgumentList
        self.configure(*args, **kwargs)

        # Count our capture groups.
        self._regex = re.compile(self.regex % "^%s$")
        self.capture_groups = self._regex.groups
dataset/ETHPy150Open ecdavis/pants/pants/web/application.py/Converter.__init__/swapped operands of `%`