[Python-checkins] Fix audit event typo : urllib.request -> urllib.Request (GH-13550)

Miss Islington (bot) webhook-mailer at python.org
Thu May 30 13:58:57 EDT 2019


https://github.com/python/cpython/commit/1b69c09248c4b51962933e3551f1ae6fc11369b6
commit: 1b69c09248c4b51962933e3551f1ae6fc11369b6
branch: master
author: Xtreak <tir.karthi at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-05-30T10:58:27-07:00
summary:

Fix audit event typo : urllib.request -> urllib.Request (GH-13550)



As per the PEP and the [audit event raised](https://github.com/python/cpython/blob/13d4e6a4a090031f8214e058ed3c8fd47767e05f/Lib/urllib/request.py#L524) in urllib.request this should be `urllib.Request`

cc: @zooba

files:
M Doc/library/urllib.request.rst

diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 1895ae74b4f5..a53c969ec629 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -95,10 +95,10 @@ The :mod:`urllib.request` module defines the following functions:
    parameter to ``urllib.urlopen``, can be obtained by using
    :class:`ProxyHandler` objects.
 
-   .. audit-event:: urllib.request "fullurl data headers method"
+   .. audit-event:: urllib.Request "fullurl data headers method"
 
       The default opener raises an :func:`auditing event <sys.audit>`
-      ``urllib.request`` with arguments ``fullurl``, ``data``, ``headers``,
+      ``urllib.Request`` with arguments ``fullurl``, ``data``, ``headers``,
       ``method`` taken from the request object.
 
    .. versionchanged:: 3.2



More information about the Python-checkins mailing list