summaryrefslogtreecommitdiff
path: root/paste/wsgilib.py
Commit message (Collapse)AuthorAgeFilesLines
* Make add_close.next() leverage add_close.__next__()python3_wsgilib_add_close_nextMarc Abramowitz2016-03-081-1/+1
| | | | so we avoid logic duplication
* Uncomment/cleanup paste.wsgilib.app_close.__next__Marc Abramowitz2016-03-071-2/+2
|
* Merge default to python3_wsgilib_add_close_nextMarc Abramowitz2016-03-071-0/+4
|\
| * paste.wsgilib.add_close: Add __next__ methodMarc Abramowitz2016-03-071-0/+4
|/ | | | to support using `add_close` objects as iterators on Python 3.
* Port wsgilib to Python 3Victor Stinner2015-04-211-10/+14
| | | | | | | | | | | * Add __next__() methods to iterable classes: just add __next__ alias to next() * Replace it.next() with next(it) * Replace unicode with six.text_type * Replace str with six.binary_type * HTTP body must be bytes: use b''.join(output) instead of ''.join(output) * Fix dump_environ(): convert output to bytes on Python 3 * Fix raw_interactive() on Python 3: use BytesIO() not StringIO() for stdin/stdout/stderr
* Strip trailing spacesVictor Stinner2015-04-211-5/+5
|
* Python 3: fix more submodulesVictor Stinner2014-03-191-9/+8
| | | | | * print syntax * replace "except Exception, exc:" with "except Exception as exc:"
* Python 3: fix sortCyril Roelandt2014-03-181-1/+1
| | | | | * Use key parameter of sort() * Convert dict.items() to list, needed by Python 3
* Python 3: use six.reraise() to re-raise an exception with the tracebackCyril Roelandt2014-03-181-2/+3
|
* Python 3: Replace "except Exception, exc" with "except Exception as exc:"Cyril Roelandt2014-03-181-1/+1
|
* Python 3: use new names of standard library modulesCyril Roelandt2014-03-181-4/+3
| | | | Use "try/except ImportError" to try Python 2 and Python 3 names.
* small docstring formatting fixesianb2008-04-271-3/+3
|
* * Fixed bug in paste lint where PATH_INFO would become unicode.bbangert2008-01-131-0/+2
|
* fix intercept_output docstring exampleianb2008-01-111-0/+2
|
* Simplify the way HTTPExceptionHandler catches HTTPExceptions. You can no ↵ianb2007-09-211-1/+1
| | | | longer raise httpexceptions in your app_iter
* exc_info should be passed up in intercept_output (if it is not, exceptions ↵ianb2007-09-061-1/+1
| | | | sometimes won't propogate upward properly)
* whitespacepjenvey2007-05-041-3/+3
|
* alphabatize __all__pjenvey2007-02-051-8/+6
| | | | | followup to r6219 (thanks eleftherios)
* added add_start_close, catch_errors_app and unicode_app_iter to __all__pjenvey2007-02-051-6/+7
|
* convert old-style classes to new-style classespjenvey2007-01-051-4/+4
|
* Security fix for StaticURLParser, plus unquote SCRIPT_NAME and PATH_INFO, ↵ianb2006-12-181-0/+2
| | | | plus don't double-unquote in StaticURLParser
* Header values sent by dump_environ should be strings.asaddi2006-12-141-1/+1
|
* A big commit, primarily aesthetic/whitespace in nature. This is the result ↵ianb2006-10-201-17/+10
| | | | of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up.
* Fixed some reST code-block statementsianb2006-09-291-3/+3
|
* Some docstring fixes, and a link fix; exception fix in paste.lint0.9.8.1ianb2006-09-051-0/+1
|
* o WSGIResponse changes:0.9.8pjenvey2006-09-041-0/+25
| | | | | | | | - properly encoding any unicode content according to the response's charset - handling generator/iterator content more cleanly - fixed delete_cookie. also now takes optional path and domain args o added wsgilib.encode_unicode_app_iter: encodes an app_iterable's unicode responses as strings
* Adding code-block directive to Python code samples.bbangert2006-09-021-3/+9
|
* Fixed problem when wrap_app_iter wraps an app_iter with no close methodianb2006-08-191-2/+0
|
* o catch_errors_app and _wrap_app_iter_app were not in sync with thepjenvey2006-08-111-3/+6
| | | | | | | exception catch_errors_app was specified to catch, causing the wrapper to consume all exceptions o avoid allowing _wrap_app_iter_app to close() its wrapped iter twice in certain situations
* o use response.HeaderDict instead of wsgilib.ResponseHeaderDictpjenvey2006-07-271-1/+1
| | | | o fixed the misleading ResponseHeaderDict deprecation warning
* Added a middleware to clear out error bodies, making them more accessible to ↵ianb2006-07-141-1/+47
| | | | Apache; added an app_iter wrapper for chaining app_iters from multiple sources (needed for peeking at status)
* Added another app_iter wrapper similar to add_close, except that also calls ↵ianb2006-06-211-0/+39
| | | | a function just before the first content is returned
* fixed docstring exampleianb2006-06-151-1/+1
|
* Added a warning to paste.wsgilib.add_closeianb2006-05-311-0/+10
|
* fix for example in docstring0.9.1ianb2006-05-071-1/+1
|
* move warnings in paste.recursive; added conditional argument to ↵ianb2006-03-071-2/+31
| | | | paste.wsgilib.intercept_output
* don't worry about writing empty strings to wsgi.errors in simulated requestianb2006-03-031-0/+2
|
* Don't let unicode get through raw_interactive without an errorianb2006-03-021-0/+4
|
* Remove the print of exceptions, which can be safely ignored; was causing ↵ianb2006-02-281-3/+0
| | | | paste.fixture to whine about errors being printed
* Stupid typos from last commitianb2006-02-281-1/+4
|
* If we don't expect errors in wsgi.errors, raise an exception immediately ↵ianb2006-02-281-2/+19
| | | | when the error message is printed, instead of waiting until the end
* Don't use StringIO in wsgilib.raw_interactive, as apparently it encodes its ↵ianb2006-02-281-4/+4
| | | | content as ASCII (?)
* Added wsgilib.intercept_output to __all__; updated news.txtianb2006-01-091-1/+1
|
* printing out debug information on 5xx messages for raw_interactivecce2006-01-051-4/+3
|
* Set HTTP_HOST in raw_interactiveianb2005-12-301-0/+3
|
* - got rid of unnecessary trailing spaces in httpexceptionscce2005-12-231-2/+7
| | | | | | | | | - made error messages us \r\n rather than just \n in httpexceptions to comply with various browsers - added tests to check FileApp - added support for handling 100 Continue in httpserver - fixingup dumpenviron in wsgilib to dump message body - misc changes to fileapp (mostly documentation)
* Added -W option to tests, which will turn warnings into errors (warnings ↵ianb2005-12-181-215/+17
| | | | haven't actually been removed yet, though). Split response and fileapp from wsgilib. Some portions of wsgilib may still move to response module, this is just the first cut
* Added a fix for httpexceptions when an exception is raised by the iterator, ↵ianb2005-12-151-0/+62
| | | | along with another error catching function for making it work
* Move things to using request module instead of wsgilibianb2005-12-141-1/+1
|
* Python 2.3 doesn't like that reassignmentianb2005-12-141-1/+4
|