parse_python.py doesn't handle QString objects well
In Python 2.x, PyQt uses QString objects to represent unicode strings. With Python 3, PyQt dropped the QString to simply use the default Python string type.
In the method
def _findNextToken(self, line, pos):, the line argument is of type QString with Python2. This is a problem at several places in that method, for example :
identifier in '0123456789'
One easy solution is to convert
try: line = unicode(line) except NameError: pass
This can be done at the beginning of
_findNextToken or in