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

inline tables do not parse #54

Closed
karhohs opened this issue Jun 15, 2016 · 1 comment
Closed

inline tables do not parse #54

karhohs opened this issue Jun 15, 2016 · 1 comment

Comments

@karhohs
Copy link

karhohs commented Jun 15, 2016

In the example file example-v0.4.0.toml

The following TOML snippet that contains in-line tables throws an error when trying to load:

name = { first = "Tom", last = "Preston-Werner" }
point = { x = 1, y = 2 }

The error is:

File "C:\Python27\lib\site-packages\toml.py", line 331, in loads
value, vtype = load_value(pair[1])
File "C:\Python27\lib\site-packages\toml.py", line 453, in load_value
parsed_date = load_date(v)
File "C:\Python27\lib\site-packages\toml.py", line 350, in load_date
tz = TomlTz(val[19:24])
File "C:\Python27\lib\site-packages\toml.py", line 9, in new
self._hours = int(toml_offset[:3])
ValueError: invalid literal for int() with base 10: 'st '

@uiri
Copy link
Owner

uiri commented Jul 5, 2016

Can you please check what version of toml you are using? Unless you are using the tip of master, this is a duplicate of #40.
I have not yet made a release with inline table support although I plan to do so soon.

@uiri uiri closed this as completed Jul 15, 2016
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