Commit b38e2bcf authored by Brett Cannon's avatar Brett Cannon

Fix plistlib to work with dict views.

parent 75d26ccd
test_bsddb test_bsddb3 test_compile test_dumbdbm
test_importhooks test_iter test_iterlen test_minidom test_mutants
test_os test_plistlib
test_os
......@@ -268,8 +268,7 @@ class PlistWriter(DumbXMLWriter):
def writeDict(self, d):
self.beginElement("dict")
items = d.items()
items.sort()
items = sorted(d.items())
for key, value in items:
if not isinstance(key, (str, unicode)):
raise TypeError("keys must be strings")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment