Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Negligible spacing fixes to comments in django/http/__init__.py

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bfb4ed1425adb38e5c7b57a2aa9ab5479fc2123c 1 parent 81bf5e3
@adrianholovaty adrianholovaty authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 django/http/__init__.py
View
14 django/http/__init__.py
@@ -21,7 +21,7 @@
# Python 2.6 and greater
from urlparse import parse_qsl
except ImportError:
- # Python 2.5. Works on Python 2.6 but raises PendingDeprecationWarning
+ # Python 2.5. Works on Python 2.6 but raises PendingDeprecationWarning
from cgi import parse_qsl
import Cookie
@@ -71,7 +71,7 @@ def value_encode(self, val):
# SimpleCookie already does the hard work of encoding and decoding.
# It uses octal sequences like '\\012' for newline etc.
- # and non-ASCII chars. We just make use of this mechanism, to
+ # and non-ASCII chars. We just make use of this mechanism, to
# avoid introducing two encoding schemes which would be confusing
# and especially awkward for javascript.
@@ -353,11 +353,11 @@ def _load_post_and_files(self):
try:
self._post, self._files = self.parse_file_upload(self.META, data)
except:
- # An error occured while parsing POST data. Since when
+ # An error occured while parsing POST data. Since when
# formatting the error the request handler might access
# self.POST, set self._post and self._file to prevent
# attempts to parse POST data again.
- # Mark that an error occured. This allows self.__repr__ to
+ # Mark that an error occured. This allows self.__repr__ to
# be explicit about it instead of simply representing an
# empty POST
self._mark_post_parse_error()
@@ -559,11 +559,11 @@ def __init__(self, content='', mimetype=None, status=None,
content_type=None):
# _headers is a mapping of the lower-case name to the original case of
# the header (required for working with legacy systems) and the header
- # value. Both the name of the header and its value are ASCII strings.
+ # value. Both the name of the header and its value are ASCII strings.
self._headers = {}
self._charset = settings.DEFAULT_CHARSET
- if mimetype:
- content_type = mimetype # For backwards compatibility
+ if mimetype: # For backwards compatibility.
+ content_type = mimetype
if not content_type:
content_type = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE,
self._charset)
Please sign in to comment.
Something went wrong with that request. Please try again.