#22895: [PEP8] Acronyms in class names should be uppercase
--------------------------------------+--------------------
     Reporter:  bendavis78            |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Uncategorized         |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 According to PEP8, under "[http://legacy.python.org/dev/peps/pep-0008/
 Descriptive Naming Styles]":

     When using abbreviations in CapWords, capitalize all the letters of
 the abbreviation. Thus HTTPServerError is better than HttpServerError.

 Django is currently inconsistent in this, as we have
 `django.http.HttpResponse` as well as `django.utils.html.HTMLParser`. With
 the deprecation framework, we should be able to change this without much
 trouble.  I've attached some files that have the class names and the files
 in which they occur. I've separated them out into core, contrib, and
 tests, as we might not care to bother with the ones in contrib and tests.
 The ones in core are as follows:

 {{{
 CsrfToken -> CSRFToken
 CsrfTokenNode -> CSRFTokenNode
 CsrfViewMiddleware -> CSRFViewMiddleware
 DefusedXmlException -> DefusedXMLException
 EnsureCsrfCookie -> EnsureCSRFCookie
 EnsureCsrfToken -> EnsureCSRFToken
 HttpRequest -> HTTPRequest
 HttpResponse -> HTTPResponse
 HttpResponseBadRequest -> HTTPResponseBadRequest
 HttpResponseBase -> HTTPResponseBase
 HttpResponseForbidden -> HTTPResponseForbidden
 HttpResponseGone -> HTTPResponseGone
 HttpResponseNotAllowed -> HTTPResponseNotAllowed
 HttpResponseNotFound -> HTTPResponseNotFound
 HttpResponseNotModified -> HTTPResponseNotModified
 HttpResponsePermanentRedirect -> HTTPResponsePermanentRedirect
 HttpResponseRedirect -> HTTPResponseRedirect
 HttpResponseRedirectBase -> HTTPResponseRedirectBase
 HttpResponseServerError -> HTTPResponseServerError
 Json -> JSON:
 JsonResponse -> JSONResponse
 RssFeed -> RSSFeed
 StreamingHttpResponse -> StreamingHTTPResponse
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22895>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.c9ce9ba5464747f1c0c78993cdde64d6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to