-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
I'm trying to write a script that uses information from Dota 2's item schema, but when I try to use the vdf module to parse the schema it gives me this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/vdf/__init__.py", line 208, in load
return parse(fp, **kwargs)
File "/usr/local/lib/python3.9/site-packages/vdf/__init__.py", line 175, in parse
stack[-1][key] = _unescape(val) if escaped else val
TypeError: 'str' object does not support item assignment
I downloaded the schema from here (and I got that URL from Steam's WebAPI), and I get the same error on the PyPI and GitHub versions of the vdf module.
I appreciate any insight or help!