Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/wsgiref/validate.py

    r2 r391  
    135135    middleware will check for WSGI compliancy on a number of levels.
    136136    This middleware does not modify the request or response in any
    137     way, but will throw an AssertionError if anything seems off
     137    way, but will raise an AssertionError if anything seems off
    138138    (except for a failure to close the application iterator, which
    139     will be printed to stderr -- there's no way to throw an exception
     139    will be printed to stderr -- there's no way to raise an exception
    140140    at that point).
    141141    """
     
    346346
    347347    if not environ.get('SCRIPT_NAME'):
    348         assert_(environ.has_key('PATH_INFO'),
     348        assert_('PATH_INFO' in environ,
    349349            "One of SCRIPT_NAME or PATH_INFO are required (PATH_INFO "
    350350            "should at least be '/' if SCRIPT_NAME is empty)")
Note: See TracChangeset for help on using the changeset viewer.