summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-02-21 21:18:18 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-02-21 21:18:18 (GMT)
commitb38e2bcfd41f04644cef55e2b82fcd6b1696eb98 (patch)
treeda718ce8937cb3e6ef159dd5f98904f518d11513 /Lib/plat-mac
parent75d26ccd7af6f10054dbd74f9c42171f1fa298d6 (diff)
downloadcpython-b38e2bcfd41f04644cef55e2b82fcd6b1696eb98.zip
cpython-b38e2bcfd41f04644cef55e2b82fcd6b1696eb98.tar.gz
cpython-b38e2bcfd41f04644cef55e2b82fcd6b1696eb98.tar.bz2
Fix plistlib to work with dict views.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/plistlib.py3
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")