Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b38e2bcf
Commit
b38e2bcf
authored
Feb 21, 2007
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix plistlib to work with dict views.
parent
75d26ccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
BROKEN
BROKEN
+1
-1
Lib/plat-mac/plistlib.py
Lib/plat-mac/plistlib.py
+1
-2
No files found.
BROKEN
View file @
b38e2bcf
test_bsddb test_bsddb3 test_compile test_dumbdbm
test_importhooks test_iter test_iterlen test_minidom test_mutants
test_os
test_plistlib
test_os
Lib/plat-mac/plistlib.py
View file @
b38e2bcf
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment