[issue28010] http.client.HTTPConnection.putrequest incorrect arguments

2016-09-08 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28010] http.client.HTTPConnection.putrequest incorrect arguments

2016-09-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f6b62cf4a436 by Senthil Kumaran in branch '3.5':
Issue28010 - Make http.client.HTTPConnection.putrequest documentation 
consistent with the code.
https://hg.python.org/cpython/rev/f6b62cf4a436

New changeset 93c7a893f9b4 by Senthil Kumaran in branch 'default':
[merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest
https://hg.python.org/cpython/rev/93c7a893f9b4

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28010] http.client.HTTPConnection.putrequest incorrect arguments

2016-09-08 Thread Senthil Kumaran

Senthil Kumaran added the comment:

This patch fixes this. It makes the documentation consistent with the code.

--
keywords: +patch
nosy: +orsenthil
Added file: http://bugs.python.org/file44479/103351.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28010] http.client.HTTPConnection.putrequest incorrect arguments

2016-09-07 Thread Martin Panter

Changes by Martin Panter :


--
keywords: +easy
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28010] http.client.HTTPConnection.putrequest incorrect arguments

2016-09-07 Thread p0lm

New submission from p0lm:

Currently the arguments for HTTPConnection.putrequest in the http.client 
documentation are listed as "request, selector, skip_host=False, 
skip_accept_encoding=False". This does not reflect the correct arguments:
>>> from http.client import HTTPConnection
>>> help(HTTPConnection.putrequest)

putrequest(self, method, url, skip_host=0, skip_accept_encoding=0)
Send a request to the server.

`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
   'Accept-Encoding:' header

Fix:
Change `request` and `selector` to `method` and `url` respectively.

--
assignee: docs@python
components: Documentation
messages: 274913
nosy: docs@python, p0lm
priority: normal
severity: normal
status: open
title: http.client.HTTPConnection.putrequest incorrect arguments
type: enhancement
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com