You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 '
The text was updated successfully, but these errors were encountered:
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.
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:
The error is:
The text was updated successfully, but these errors were encountered: