<s> """<STR_LIT>""" <EOL> from warnings import warn <EOL> from werkzeug . wsgi import LimitedStream <EOL> class StreamLimitMiddleware ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , app , maximum_size = <NUM_LIT> * <NUM_LIT> * <NUM_LIT:10> ) : <EOL> warn ( DeprecationWarning ( '<STR_LIT>' ) ) <EOL> self . app = app <EOL> self . maximum_size = maximum_size <EOL> def __call__ ( self , environ , start_response ) : <EOL> limit = min ( self . maximum_size , int ( environ . get ( '<STR_LIT>' ) or <NUM_LIT:0> ) ) <EOL> environ [ '<STR_LIT>' ] = LimitedStream ( environ [ '<STR_LIT>' ] , limit ) <EOL> return self . app ( environ , start_response ) </s>
