python: Convert dict iterators.
[cascardo/ovs.git] / python / build / nroff.py
index f0edd29..aed60eb 100644 (file)
@@ -89,7 +89,7 @@ def inline_xml_to_nroff(node, font, to_upper=False, newline='\n'):
                 s += node.attributes['db'].nodeValue
             else:
                 raise error.Error("'ref' lacks required attributes: %s"
-                                  % node.attributes.keys())
+                                  % list(node.attributes.keys()))
             return s + font
         elif node.tagName in ['var', 'dfn', 'i']:
             s = r'\fI'