We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Input file demo.vdf:
"controller_mappings" { "group" { "id" "0" } "group" { "id" "1" } }
Test script:
import vdf with open("demo.vdf") as fp: v = vdf.load(fp, mapper=vdf.VDFDict) print(type(v)) print(type(v['controller_mappings'])) print(vdf.dumps(v, pretty=True))
Expected output: (demo.vdf)
Actual output:
<class 'vdf.vdict.VDFDict'> <class 'vdf.vdict.VDFDict'> "controller_mappings" { "group" { "id" "0" "id" "1" } }
Not only is this incorrect, but no error is thrown: the resulting data structure is silently malformed and passed along.
The text was updated successfully, but these errors were encountered:
Did you try setting merge_duplicate_keys=False ? The default behaviour is to merge duplicate keys.
merge_duplicate_keys=False
See
vdf/vdf/__init__.py
Lines 77 to 79 in d762926
Sorry, something went wrong.
No branches or pull requests
Input file demo.vdf:
Test script:
Expected output:
(demo.vdf)
Actual output:
Not only is this incorrect, but no error is thrown: the resulting data structure is silently malformed and passed along.
The text was updated successfully, but these errors were encountered: