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