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

Tab in string yielding error #5

Closed
EyeOfPython opened this issue Jul 14, 2015 · 1 comment
Closed

Tab in string yielding error #5

EyeOfPython opened this issue Jul 14, 2015 · 1 comment

Comments

@EyeOfPython
Copy link

Executing this:

Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pytoml
>>> pytoml.loads('a="\t"')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win-amd64\egg\pytoml\parser.py", line 23, in loads
  File "build\bdist.win-amd64\egg\pytoml\parser.py", line 344, in _p_toml
  File "build\bdist.win-amd64\egg\pytoml\parser.py", line 124, in expect_eof
  File "build\bdist.win-amd64\egg\pytoml\parser.py", line 164, in _expect
pytoml.core.TomlError: <string>(1, 1): msg

Apparently a tab is not allowed in a string, yielding a uninformative error message. Would be nice to see this fixed to prevent others from stumbling over the same message.

@avakar
Copy link
Owner

avakar commented Jul 14, 2015

Yes, the error message is always "msg" right now. Thank you for opening the issue, the reporting certainly needs to be made better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants