Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6b8121

Browse files
committed
Remove two lingering references to now-gone has_key() methods from the library docs.
1 parent c111d9f commit f6b8121

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/library/wsgiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ manipulation of WSGI response headers using a mapping-like interface.
156156

157157
:class:`Headers` objects support typical mapping operations including
158158
:meth:`__getitem__`, :meth:`get`, :meth:`__setitem__`, :meth:`setdefault`,
159-
:meth:`__delitem__`, :meth:`__contains__` and :meth:`has_key`. For each of
159+
:meth:`__delitem__` and :meth:`__contains__`. For each of
160160
these methods, the key is the header name (treated case-insensitively), and the
161161
value is the first value associated with that header name. Setting a header
162162
deletes any existing values for that header, then adds a new value at the end of

Doc/library/xml.sax.reader.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ The :class:`Attributes` Interface
324324
---------------------------------
325325

326326
:class:`Attributes` objects implement a portion of the mapping protocol,
327-
including the methods :meth:`copy`, :meth:`get`, :meth:`has_key`, :meth:`items`,
328-
:meth:`keys`, and :meth:`values`. The following methods are also provided:
327+
including the methods :meth:`copy`, :meth:`get`, :meth:`__contains__`,
328+
:meth:`items`, :meth:`keys`, and :meth:`values`. The following methods
329+
are also provided:
329330

330331

331332
.. method:: Attributes.getLength()

0 commit comments

Comments
 (0)