This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients demian.brecht, martin.panter
Date 2015-02-11.11:46:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423655171.77.0.0216146047129.issue23442@psf.upfronthosting.co.za>
In-reply-to
Content
This is a regression caused by the new HTTPStatus enum from Issue 21793. RFC 6585 uses the plural “Fields”, so maybe the new enum symbol needs renaming.

$ python3.4
Python 3.4.2 (default, Oct  8 2014, 13:44:52) 
[GCC 4.9.1 20140903 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import http.client
>>> http.client.REQUEST_HEADER_FIELDS_TOO_LARGE
431
>>> http.client.REQUEST_HEADER_FIELD_TOO_LARGE
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'REQUEST_HEADER_FIELD_TOO_LARGE'
>>> 
$ ./python
Python 3.5.0a0 (qbase qtip simple-http-testing.patch tip:f3fadbfb10ba, Feb 11 2015, 07:18:07) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import http.client
>>> http.client.REQUEST_HEADER_FIELDS_TOO_LARGE
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'http.client' has no attribute 'REQUEST_HEADER_FIELDS_TOO_LARGE'
>>> http.client.REQUEST_HEADER_FIELD_TOO_LARGE
<HTTPStatus.REQUEST_HEADER_FIELD_TOO_LARGE: 431>
History
Date User Action Args
2015-02-11 11:46:11martin.pantersetrecipients: + martin.panter, demian.brecht
2015-02-11 11:46:11martin.pantersetmessageid: <1423655171.77.0.0216146047129.issue23442@psf.upfronthosting.co.za>
2015-02-11 11:46:11martin.panterlinkissue23442 messages
2015-02-11 11:46:11martin.pantercreate