summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpje <pje@571e12c6-e1fa-0310-aee7-ff1267fa46bd>2006-06-05 22:22:26 +0000
committerpje <pje@571e12c6-e1fa-0310-aee7-ff1267fa46bd>2006-06-05 22:22:26 +0000
commit0b23534237874b0449f0a9fd2071c099432b563e (patch)
treec0c75c4944d76fd9cbb7168cb8e93b74e4031386
parentbb7d34cd07da18f48a0ad1e4af9ae65ce3ac79e1 (diff)
downloadwsgiref-0b23534237874b0449f0a9fd2071c099432b563e.tar.gz
Cosmetic change
git-svn-id: svn://svn.eby-sarna.com/svnroot/wsgiref@2171 571e12c6-e1fa-0310-aee7-ff1267fa46bd
-rw-r--r--wsgiref/util.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wsgiref/util.py b/wsgiref/util.py
index 0f805ec..78ebb3b 100644
--- a/wsgiref/util.py
+++ b/wsgiref/util.py
@@ -16,7 +16,7 @@ class FileWrapper:
self.blksize = blksize
if hasattr(filelike,'close'):
self.close = filelike.close
-
+
def __getitem__(self,key):
data = self.filelike.read(self.blksize)
if data:
@@ -25,7 +25,7 @@ class FileWrapper:
def __iter__(self):
return self
-
+
def next(self):
data = self.filelike.read(self.blksize)
if data:
@@ -46,7 +46,7 @@ def guess_scheme(environ):
return 'https'
else:
return 'http'
-
+
def application_uri(environ):
"""Return the application's base URI (no PATH_INFO or QUERY_STRING)"""
url = environ['wsgi.url_scheme']+'://'
@@ -65,9 +65,9 @@ def application_uri(environ):
url += ':' + environ['SERVER_PORT']
url += quote(environ.get('SCRIPT_NAME') or '/')
- return url
+ return url
-def request_uri(environ,include_query=1):
+def request_uri(environ, include_query=1):
"""Return the full request URI, optionally including the query string"""
url = application_uri(environ)
from urllib import quote
@@ -172,7 +172,7 @@ def is_hop_by_hop(header_name):
"""Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""
return _hoppish(header_name.lower())
-
+