mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix plistlib to work with dict views.
This commit is contained in:
2
BROKEN
2
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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user