Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typo in comment.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d79f684f9d198ee647b0f4e67b5c0e9469900002 1 parent 0397e63
@gdub gdub authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/views/static.py
View
4 django/views/static.py
@@ -29,12 +29,12 @@ def serve(request, path, document_root=None, show_indexes=False):
newpath = ''
for part in path.split('/'):
if not part:
- # strip empty path components
+ # Strip empty path components.
continue
drive, part = os.path.splitdrive(part)
head, part = os.path.split(part)
if part in (os.curdir, os.pardir):
- # strip '.' amd '..' in path
+ # Strip '.' and '..' in path.
continue
newpath = os.path.join(newpath, part).replace('\\', '/')
if newpath and path != newpath:
Please sign in to comment.
Something went wrong with that request. Please try again.