Skip to content

Commit 2828858

Browse files
committed
Replace req.has_data with req.data
has_data was removed in version 3.4
1 parent ac613d0 commit 2828858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/urllib.request.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ HTTPHandler Objects
11151115
.. method:: HTTPHandler.http_open(req)
11161116

11171117
Send an HTTP request, which can be either GET or POST, depending on
1118-
``req.has_data()``.
1118+
``req.data``.
11191119

11201120

11211121
.. _https-handler-objects:
@@ -1127,7 +1127,7 @@ HTTPSHandler Objects
11271127
.. method:: HTTPSHandler.https_open(req)
11281128

11291129
Send an HTTPS request, which can be either GET or POST, depending on
1130-
``req.has_data()``.
1130+
``req.data``.
11311131

11321132

11331133
.. _file-handler-objects:

0 commit comments

Comments
 (0)