adriank / ObjectPath

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

Allow parser.parse to take unicode expressions #7

Closed stoey closed 10 years ago

stoey commented 10 years ago

Unicode "program"s get encoded as utf8 before being passed to tokenizer.generate_tokens and the check on expr type is relaxed from str to STR_TYPES.

Also added simple regression test that fails before the change and succeeds with it.

stoey commented 10 years ago

See #8 for rationale