Mercurial > jpath
diff jpath.py @ 28:0a216b982fd1 default tip
Bump version to 1.6
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Mon, 22 Jan 2018 15:45:20 +0100 |
| parents | a607cb7f6333 |
| children |
line wrap: on
line diff
--- a/jpath.py Mon Jan 22 11:31:52 2018 +0100 +++ b/jpath.py Mon Jan 22 15:45:20 2018 +0100 @@ -55,7 +55,7 @@ import operator __all__ = ['get', 'get_all'] -__version__ = '1.5' +__version__ = '1.6' # Make it work both in python 2.x and 3.x @@ -252,6 +252,7 @@ for value in token.parse(tokens, item): yield value + @Tokenizer.token class WildcardToken(Token): """*[*].*, may return multiple results""" @@ -431,6 +432,7 @@ return get_all(jpath, data)[0] + if __name__ == "__main__": # Run tests when started. import doctest
