Comment 1 for bug 809884

Revision history for this message
Hannes Hochreiner (hannes-hochreiner) wrote :

Thanks for pointing this problem out. Adding the "u(...)"-function would not be a big deal and I'll happily do it, since the scripts would then run on python 2 and 3. However, I did some quick tests with the 2to3 tool and there are at least two other constructs that are quite frequently used that would need to be replaced:

- if node.attrib.has_key("{" + inkex.NSS["jessyink"] + "}view"):
+ if "{" + inkex.NSS["jessyink"] + "}view" in node.attrib:

- for id, node in self.selected.items():
+ for id, node in list(self.selected.items()):

Do you know whether the suggested changed still work in python 2?