From 0b23534237874b0449f0a9fd2071c099432b563e Mon Sep 17 00:00:00 2001 From: pje Date: Mon, 5 Jun 2006 22:22:26 +0000 Subject: Cosmetic change git-svn-id: svn://svn.eby-sarna.com/svnroot/wsgiref@2171 571e12c6-e1fa-0310-aee7-ff1267fa46bd --- wsgiref/util.py | 12 ++++++------ 1 file 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()) - + -- cgit v1.2.1