]> granicus.if.org Git - python/commitdiff
Fix plistlib to work with dict views.
authorBrett Cannon <bcannon@gmail.com>
Wed, 21 Feb 2007 21:18:18 +0000 (21:18 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 21 Feb 2007 21:18:18 +0000 (21:18 +0000)
BROKEN
Lib/plat-mac/plistlib.py

diff --git a/BROKEN b/BROKEN
index 4615d6d1373ded474326a0ecf99e14183ba30a60..034cd851ff04ca972e910e2d7e96453d5de63535 100644 (file)
--- a/BROKEN
+++ b/BROKEN
@@ -1,3 +1,3 @@
     test_bsddb test_bsddb3 test_compile test_dumbdbm
     test_importhooks test_iter test_iterlen test_minidom test_mutants
-    test_os test_plistlib
+    test_os
index f91f1d3fc608af5afd8c45f34920eb1eadf92c8f..0daf3b5b17a6b709b9cedc1188553e8a0cae1ecc 100644 (file)
@@ -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")