Issue 26553: Write HTTP in uppercase (original) (raw)

Created on 2016-03-14 06:23 by Sudheer Satyanarayana, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue26553.patch anish.shah,2016-03-14 14:42 review
issue26553-python3.patch anish.shah,2016-03-14 14:42 review
fix_2.7.patch aatishnn,2016-03-18 06:19 Patch for 2.7 review
fix_3.5.patch aatishnn,2016-03-18 06:20 Patch for 3.5 review
fix_3.6.patch aatishnn,2016-03-18 06:20 Patch for 3.6 review
2_fix_2.7.patch aatishnn,2016-03-18 14:02 review
2_fix_3.5.patch aatishnn,2016-03-18 14:02 review
2_fix_3.6.patch aatishnn,2016-03-18 14:02 review
3_fix_3.6.patch nharold,2016-05-26 20:58 review
3_fix_3.5.patch nharold,2016-05-26 20:58 review
3_fix_2.7.patch nharold,2016-05-26 20:59 review
Messages (14)
msg261726 - (view) Author: Sudheer Satyanarayana (Sudheer Satyanarayana) Date: 2016-03-14 06:23
"The Requests package is recommended for a higher-level http client interface." Change 'http' to uppercase. https://docs.python.org/2/library/httplib.html https://docs.python.org/2/library/urllib.html https://docs.python.org/3/library/http.client.html
msg261730 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-03-14 07:49
Could you provide a patch Sudheer?
msg261756 - (view) Author: Anish Shah (anish.shah) * Date: 2016-03-14 14:42
Patch for urllib and httplib in Python 2
msg261757 - (view) Author: Anish Shah (anish.shah) * Date: 2016-03-14 14:42
Patch for http.client in Python3
msg261759 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-03-14 15:06
There are occurrences of "http" in lower case in docstrings and comments. The same for https and ftp (and may be other abbreviations).
msg261947 - (view) Author: Aatish Neupane (aatishnn) * Date: 2016-03-18 06:21
I have attached the patches fixing numerous case errors.
msg261964 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-03-18 10:48
The three fix_x.y patches look good to me. I pointed out one more fix on the review. I think there are plenty more similar changes that could be made if somebody wanted to.
msg261969 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-03-18 11:42
Similar changes could be made in docstrings and comments. But changing error messages can be not safe and could be made only in 3.6.
msg261972 - (view) Author: Aatish Neupane (aatishnn) * Date: 2016-03-18 14:05
I found some other similar errors with the suggestion from the patch review. I have uploaded the new patches as 2_fix* .
msg261990 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2016-03-18 19:44
Aatish, please sign the CLA https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/
msg262017 - (view) Author: Aatish Neupane (aatishnn) * Date: 2016-03-19 02:37
I already did that.
msg266455 - (view) Author: Nathan Harold (nharold) * Date: 2016-05-26 20:58
The 2_fix* patches were unfortunately slightly broken because an unrelated revision to xmlrpc.client.rst changed one of the lines the patch files were using as an anchor (by adding a period to the end). I've uploaded the 3_fix* series, which addresses this. The actual changes in these patches are identical to those in their precursors: capitalization of HTTP, HTTPS, FTP, and URL in a few places.
msg266528 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-28 02:35
New changeset 4275181c4229 by Martin Panter in branch '3.5': Issue #26553: Capitalization of HTTP, HTTPS, FTP, and URL https://hg.python.org/cpython/rev/4275181c4229 New changeset 8c92ebcca83f by Martin Panter in branch 'default': Issue #26553: Merge capitalization from 3.5 https://hg.python.org/cpython/rev/8c92ebcca83f New changeset d914d681b7f3 by Martin Panter in branch '2.7': Issue #26553: Capitalization of HTTP, HTTPS, FTP, and URL https://hg.python.org/cpython/rev/d914d681b7f3
msg266529 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-05-28 03:12
Thankyou Nathan, and also Anish & Aatish. For the record, it is normally enough to do a patch against the latest (3.6), and any minor conflicts can be sorted out when applying it to 3.5. In this case the 3.5 and 3.6 patches were basically the same. But the separate patch for 2.7 was very helpful, because there are so many differences between 2 and 3.
History
Date User Action Args
2022-04-11 14:58:28 admin set github: 70740
2016-05-28 03:12:39 martin.panter set status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2016-05-28 02:35:38 python-dev set nosy: + python-devmessages: +
2016-05-26 20:59:30 nharold set files: + 3_fix_2.7.patch
2016-05-26 20:58:48 nharold set files: + 3_fix_3.5.patch
2016-05-26 20:58:22 nharold set files: + 3_fix_3.6.patchnosy: + nharoldmessages: +
2016-03-19 02:37:56 aatishnn set messages: +
2016-03-18 19:44:29 terry.reedy set nosy: + terry.reedymessages: +
2016-03-18 14:05:09 aatishnn set messages: +
2016-03-18 14:02:32 aatishnn set files: + 2_fix_3.6.patch
2016-03-18 14:02:24 aatishnn set files: + 2_fix_3.5.patch
2016-03-18 14:02:11 aatishnn set files: + 2_fix_2.7.patch
2016-03-18 11:42:14 serhiy.storchaka set messages: +
2016-03-18 10:48:47 martin.panter set nosy: + martin.pantermessages: + stage: needs patch -> patch review
2016-03-18 06:21:52 aatishnn set nosy: + aatishnnmessages: +
2016-03-18 06:20:49 aatishnn set files: + fix_3.6.patch
2016-03-18 06:20:13 aatishnn set files: + fix_3.5.patch
2016-03-18 06:19:53 aatishnn set files: + fix_2.7.patch
2016-03-14 15:06:12 serhiy.storchaka set messages: +
2016-03-14 14:42:30 anish.shah set files: + issue26553-python3.patchmessages: +
2016-03-14 14:42:03 anish.shah set files: + issue26553.patchnosy: + anish.shahmessages: + keywords: + patch
2016-03-14 07:49:23 serhiy.storchaka set versions: + Python 2.7, Python 3.5, Python 3.6nosy: + serhiy.storchakamessages: + keywords: + easystage: needs patch
2016-03-14 06:23:33 Sudheer Satyanarayana create