]> granicus.if.org Git - python/commitdiff
Fix audit event typo : urllib.request -> urllib.Request (GH-13550)
authorXtreak <tir.karthi@gmail.com>
Thu, 30 May 2019 17:58:28 +0000 (23:28 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 30 May 2019 17:58:27 +0000 (10:58 -0700)
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

Doc/library/urllib.request.rst

index 1895ae74b4f5de84a0e82d60b0597f777b6bed27..a53c969ec629a552396c0b662ea62365f3ad3b6b 100644 (file)
@@ -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