diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2007-10-06 02:19:15 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2007-10-06 02:19:15 +0000 |
| commit | d79f684f9d198ee647b0f4e67b5c0e9469900002 (patch) | |
| tree | 8ce6103c0aa7dc02aca70c099c2f5b8327f2e37d | |
| parent | 0397e63a1980145cab60c87b9c37c1f36ca616bf (diff) | |
Fixed typo in comment.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/views/static.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/static.py b/django/views/static.py index 3ec4ca14a1..e274057617 100644 --- a/django/views/static.py +++ b/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: |
