diff options
| author | ianb <devnull@localhost> | 2005-05-17 03:06:22 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-17 03:06:22 +0000 |
| commit | ed51c888895583a856f40ce951c0c131a26f9ca3 (patch) | |
| tree | 8f56068ec37a20406eab36c1f4a86ff233a5ddb8 /paste/wsgilib.py | |
| parent | a3ce49f606ece7bfc639a7d27fa6a4c50b0b8b37 (diff) | |
| download | paste-ed51c888895583a856f40ce951c0c131a26f9ca3.tar.gz | |
A bunch of pylint-inspired changes; all minor code cleanup
Diffstat (limited to 'paste/wsgilib.py')
| -rw-r--r-- | paste/wsgilib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py index 3bf5a6b..9537e9d 100644 --- a/paste/wsgilib.py +++ b/paste/wsgilib.py @@ -118,10 +118,10 @@ def construct_url(environ, with_query_string=True, with_path_info=True): if environ['wsgi.url_scheme'] == 'https': if environ['SERVER_PORT'] != '443': - url += ':' + environ['SERVER_PORT'] + url += ':' + environ['SERVER_PORT'] else: if environ['SERVER_PORT'] != '80': - url += ':' + environ['SERVER_PORT'] + url += ':' + environ['SERVER_PORT'] url += environ.get('SCRIPT_NAME','') if with_path_info: @@ -197,8 +197,8 @@ def send_file(filename): class _FileIter: - def __init__(self, file, blocksize=4096): - self.file = file + def __init__(self, fp, blocksize=4096): + self.file = fp self.blocksize = blocksize def __iter__(self): @@ -223,7 +223,7 @@ def has_header(headers, name): return True return False -def header_value(headers, name, collapse=False): +def header_value(headers, name): """ Returns the header's value, or None if no such header. If a header appears more than once, all the values of the headers |
