Unexpected STRING token
I got an error when parsing adodbapi.py from the adodbapi library. This is on baron 0.6.6.
baron.parser.ParsingError: Error, got an unexpected token STRING here:
261 try: 262 self.connection_string = kwargs['connection_string'] % kwargs # insert keyword arguments 263 except (Exception), e: 264 self._raiseConnectionError(KeyError,'Python string format error in connection string->') 265 self.timeout = kwargs.get('timeout', 30) 266 self.kwargs = kwargs 267 if verbose: 268 print '%s attempting: "%s"'<---- here
The token STRING should be one of those: AMPER_EQUAL, CIRCUMFLEX_EQUAL, COLON, COMMA, COMMENT, DOUBLE_SLASH_EQUAL, DOUBLE_STAR_EQUAL, ENDL, EQUAL, LEFT_SHIFT_EQUAL, MINUS_EQUAL, PERCENT_EQUAL, PLUS_EQUAL, RIGHT_PARENTHESIS, RIGHT_SHIFT_EQUAL, SEMICOLON, SLASH_EQUAL, STAR_EQUAL, VBAR_EQUAL
I got the same error message on a different file from a proprietary codebase. I'm also using 0.6.6.