diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-02-21 21:18:18 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-02-21 21:18:18 +0000 |
commit | b38e2bcfd41f04644cef55e2b82fcd6b1696eb98 (patch) | |
tree | da718ce8937cb3e6ef159dd5f98904f518d11513 | |
parent | 75d26ccd7af6f10054dbd74f9c42171f1fa298d6 (diff) | |
download | cpython-git-b38e2bcfd41f04644cef55e2b82fcd6b1696eb98.tar.gz |
Fix plistlib to work with dict views.
-rw-r--r-- | BROKEN | 2 | ||||
-rw-r--r-- | Lib/plat-mac/plistlib.py | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -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 diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py index f91f1d3fc6..0daf3b5b17 100644 --- a/Lib/plat-mac/plistlib.py +++ b/Lib/plat-mac/plistlib.py @@ -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") |