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
acc0952f
Commit
acc0952f
authored
Nov 14, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The error message should contain the key as given, not normalized.
Backout of 2e047702df7f. Reported by Jeremy Kloth.
parent
618b7303
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/packaging/metadata.py
Lib/packaging/metadata.py
+4
-2
No files found.
Lib/packaging/metadata.py
View file @
acc0952f
...
...
@@ -229,8 +229,10 @@ class Metadata:
def
__delitem__
(
self
,
name
):
field_name
=
self
.
_convert_name
(
name
)
# we let a KeyError propagate
del
self
.
_fields
[
field_name
]
try
:
del
self
.
_fields
[
field_name
]
except
KeyError
:
raise
KeyError
(
name
)
self
.
_set_best_version
()
def
__contains__
(
self
,
name
):
...
...
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