diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-11 07:26:27 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-11 07:26:27 (GMT) |
commit | f992a2b11e5fdcddbb6ef834a0601e1ac6307409 (patch) | |
tree | 43fa3adc4d9ca3e9f51603c1dfb9e53b9803a165 /Lib/wsgiref/validate.py | |
parent | 7d5b6e8991fc397492f735a6e9d5e073e54ab15e (diff) | |
download | cpython-f992a2b11e5fdcddbb6ef834a0601e1ac6307409.zip cpython-f992a2b11e5fdcddbb6ef834a0601e1ac6307409.tar.gz cpython-f992a2b11e5fdcddbb6ef834a0601e1ac6307409.tar.bz2 |
Fix errors found by pychecker
Diffstat (limited to 'Lib/wsgiref/validate.py')
-rw-r--r-- | Lib/wsgiref/validate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/validate.py b/Lib/wsgiref/validate.py index 934822b..f7b1ae7 100644 --- a/Lib/wsgiref/validate.py +++ b/Lib/wsgiref/validate.py @@ -248,7 +248,7 @@ class PartialIteratorWrapper: def __iter__(self): # We want to make sure __iter__ is called - return IteratorWrapper(self.iterator) + return IteratorWrapper(self.iterator, None) class IteratorWrapper: @@ -313,7 +313,7 @@ def check_environ(environ): continue assert type(environ[key]) is StringType, ( "Environmental variable %s is not a string: %r (value: %r)" - % (type(environ[key]), environ[key])) + % (key, type(environ[key]), environ[key])) assert type(environ['wsgi.version']) is TupleType, ( "wsgi.version should be a tuple (%r)" % environ['wsgi.version']) |