Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: UnknownItem #85

Closed
boxed opened this issue Nov 28, 2016 · 0 comments
Closed

Crash: UnknownItem #85

boxed opened this issue Nov 28, 2016 · 0 comments
Labels

Comments

@boxed
Copy link
Contributor

boxed commented Nov 28, 2016

dumps(parse('d*e-1'))

produces this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/andersh/Projects/mutmut/env/lib/python2.7/site-packages/baron/baron.py", line 49, in parse
    tokens = tokenize(source_code, False)
  File "/Users/andersh/Projects/mutmut/env/lib/python2.7/site-packages/baron/baron.py", line 70, in tokenize
    return mark_indentation(inner_group(space_group(_tokenize(group(split(pouet)), print_function))))
  File "/Users/andersh/Projects/mutmut/env/lib/python2.7/site-packages/baron/tokenizer.py", line 92, in tokenize
    return list(tokenize_generator(sequence, print_function))
  File "/Users/andersh/Projects/mutmut/env/lib/python2.7/site-packages/baron/tokenizer.py", line 114, in tokenize_generator
    raise UnknowItem("Can't find a matching token for this item: '%s'" % item)
baron.tokenizer.UnknowItem: Can't find a matching token for this item: 'e-1'
@ibizaman ibizaman added the bug label Dec 5, 2016
Psycojoker added a commit that referenced this issue Sep 4, 2017
Fixed incorrect tokenization case "d*e-1". Fixes #85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants