aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-py11-attributes
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-05-25 19:33:47 -0400
committerRob Austein <sra@hactrn.net>2020-05-25 19:33:47 -0400
commitfa3feddf3a25e34db2ac57ff8e962f13db07bf40 (patch)
treec001ead2bc727824ad26a1f5493c491eefe77185 /scripts/build-py11-attributes
parent5936befa654ce79b2f9ee7cd4f3beb6489bac227 (diff)
Untested conversion to support Python 3
Diffstat (limited to 'scripts/build-py11-attributes')
-rwxr-xr-xscripts/build-py11-attributes8
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.