diff options
author | Rob Austein <sra@hactrn.net> | 2020-05-25 19:33:47 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2020-05-25 19:33:47 -0400 |
commit | fa3feddf3a25e34db2ac57ff8e962f13db07bf40 (patch) | |
tree | c001ead2bc727824ad26a1f5493c491eefe77185 /scripts/build-py11-attributes | |
parent | 5936befa654ce79b2f9ee7cd4f3beb6489bac227 (diff) |
Untested conversion to support Python 3
Diffstat (limited to 'scripts/build-py11-attributes')
-rwxr-xr-x | scripts/build-py11-attributes | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build-py11-attributes b/scripts/build-py11-attributes index cacb63a..107d33b 100755 --- a/scripts/build-py11-attributes +++ b/scripts/build-py11-attributes @@ -54,10 +54,10 @@ parser.add_argument("output_file", help = "Output .py file", nargs = "?", typ args = parser.parse_args() attribute_map = dict( - (k, v["type"]) - for y in yaml.safe_load(args.yaml_file) - for k, v in y.iteritems() - if k.startswith("CKA_") and "type" in v) + (k, v["type"]) + for y in yaml.safe_load(args.yaml_file) + for k, v in y.items() + if k.startswith("CKA_") and "type" in v) args.output_file.write('''\ # This file was generated automatically from %(input)s by %(script)s. Do not edit this file directly. |