adriank / ObjectPath

The agile query language for semi-structured data
http://objectpath.org
MIT License
380 stars 93 forks source link

Python 3.7, broken on tokenize #74

Closed sharksforarms closed 5 years ago

sharksforarms commented 5 years ago

I'm getting a syntax error no matter what I input. I think this is because tokenize is adding a NEWLINE which isn't handled by the core parser.

Getting a KeyError: 4 on line 398 in tokenize_python yield type_map[t[0]], t[1]

TokenInfo(type=4 (NEWLINE), string='') is not handled in the list in the except KeyError

tokenizer.NEWLINE

adriank commented 5 years ago

Unfortunately, I have no access to Python 3.7 right now but last time I had, ObjectPath worked on that version.

serjshevchenko commented 5 years ago

Hello, I have the same issue on Python 3.6.7

sharksforarms commented 5 years ago

@adriank Any possibility of a release? This will make the package usable on later versions of python