renamed in Python 3
authorVolker Birk <vb@pep-project.org>
Thu, 21 Jan 2021 01:46:34 +0100
changeset 70 58043c7bcc51
parent 69 2a1581de91ea
child 71 adb8b1a1d517
renamed in Python 3
yml2proc
--- a/yml2proc	Tue Dec 15 11:30:47 2020 +0100
+++ b/yml2proc	Thu Jan 21 01:46:34 2021 +0100
@@ -181,11 +181,11 @@
             
             if options.params:
                 params = eval(options.params)
-                for key, value in params.iteritems():
+                for key, value in params.items():
                     if type(value) is not str:
                         params[key] = u(value)
             if options.stringparams:
-                for key, value in eval(options.stringparams).iteritems():
+                for key, value in eval(options.stringparams).items():
                     params[key] = "'" + u(value) + "'"
 
             rresult = transform(doc, **params)