Changeset 391 for python/trunk/Lib/wsgiref/validate.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/wsgiref/validate.py
r2 r391 135 135 middleware will check for WSGI compliancy on a number of levels. 136 136 This middleware does not modify the request or response in any 137 way, but will throwan AssertionError if anything seems off137 way, but will raise an AssertionError if anything seems off 138 138 (except for a failure to close the application iterator, which 139 will be printed to stderr -- there's no way to throwan exception139 will be printed to stderr -- there's no way to raise an exception 140 140 at that point). 141 141 """ … … 346 346 347 347 if not environ.get('SCRIPT_NAME'): 348 assert_( environ.has_key('PATH_INFO'),348 assert_('PATH_INFO' in environ, 349 349 "One of SCRIPT_NAME or PATH_INFO are required (PATH_INFO " 350 350 "should at least be '/' if SCRIPT_NAME is empty)")
Note:
See TracChangeset
for help on using the changeset viewer.