Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make add_close.next() leverage add_close.__next__()python3_wsgilib_add_close_next | Marc Abramowitz | 2016-03-08 | 1 | -1/+1 |
| | | | | so we avoid logic duplication | ||||
* | Uncomment/cleanup paste.wsgilib.app_close.__next__ | Marc Abramowitz | 2016-03-07 | 1 | -2/+2 |
| | |||||
* | Merge default to python3_wsgilib_add_close_next | Marc Abramowitz | 2016-03-07 | 1 | -0/+4 |
|\ | |||||
| * | paste.wsgilib.add_close: Add __next__ method | Marc Abramowitz | 2016-03-07 | 1 | -0/+4 |
|/ | | | | to support using `add_close` objects as iterators on Python 3. | ||||
* | Port wsgilib to Python 3 | Victor Stinner | 2015-04-21 | 1 | -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 spaces | Victor Stinner | 2015-04-21 | 1 | -5/+5 |
| | |||||
* | Python 3: fix more submodules | Victor Stinner | 2014-03-19 | 1 | -9/+8 |
| | | | | | * print syntax * replace "except Exception, exc:" with "except Exception as exc:" | ||||
* | Python 3: fix sort | Cyril Roelandt | 2014-03-18 | 1 | -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 traceback | Cyril Roelandt | 2014-03-18 | 1 | -2/+3 |
| | |||||
* | Python 3: Replace "except Exception, exc" with "except Exception as exc:" | Cyril Roelandt | 2014-03-18 | 1 | -1/+1 |
| | |||||
* | Python 3: use new names of standard library modules | Cyril Roelandt | 2014-03-18 | 1 | -4/+3 |
| | | | | Use "try/except ImportError" to try Python 2 and Python 3 names. | ||||
* | small docstring formatting fixes | ianb | 2008-04-27 | 1 | -3/+3 |
| | |||||
* | * Fixed bug in paste lint where PATH_INFO would become unicode. | bbangert | 2008-01-13 | 1 | -0/+2 |
| | |||||
* | fix intercept_output docstring example | ianb | 2008-01-11 | 1 | -0/+2 |
| | |||||
* | Simplify the way HTTPExceptionHandler catches HTTPExceptions. You can no ↵ | ianb | 2007-09-21 | 1 | -1/+1 |
| | | | | longer raise httpexceptions in your app_iter | ||||
* | exc_info should be passed up in intercept_output (if it is not, exceptions ↵ | ianb | 2007-09-06 | 1 | -1/+1 |
| | | | | sometimes won't propogate upward properly) | ||||
* | whitespace | pjenvey | 2007-05-04 | 1 | -3/+3 |
| | |||||
* | alphabatize __all__ | pjenvey | 2007-02-05 | 1 | -8/+6 |
| | | | | | followup to r6219 (thanks eleftherios) | ||||
* | added add_start_close, catch_errors_app and unicode_app_iter to __all__ | pjenvey | 2007-02-05 | 1 | -6/+7 |
| | |||||
* | convert old-style classes to new-style classes | pjenvey | 2007-01-05 | 1 | -4/+4 |
| | |||||
* | Security fix for StaticURLParser, plus unquote SCRIPT_NAME and PATH_INFO, ↵ | ianb | 2006-12-18 | 1 | -0/+2 |
| | | | | plus don't double-unquote in StaticURLParser | ||||
* | Header values sent by dump_environ should be strings. | asaddi | 2006-12-14 | 1 | -1/+1 |
| | |||||
* | A big commit, primarily aesthetic/whitespace in nature. This is the result ↵ | ianb | 2006-10-20 | 1 | -17/+10 |
| | | | | of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up. | ||||
* | Fixed some reST code-block statements | ianb | 2006-09-29 | 1 | -3/+3 |
| | |||||
* | Some docstring fixes, and a link fix; exception fix in paste.lint0.9.8.1 | ianb | 2006-09-05 | 1 | -0/+1 |
| | |||||
* | o WSGIResponse changes:0.9.8 | pjenvey | 2006-09-04 | 1 | -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. | bbangert | 2006-09-02 | 1 | -3/+9 |
| | |||||
* | Fixed problem when wrap_app_iter wraps an app_iter with no close method | ianb | 2006-08-19 | 1 | -2/+0 |
| | |||||
* | o catch_errors_app and _wrap_app_iter_app were not in sync with the | pjenvey | 2006-08-11 | 1 | -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.ResponseHeaderDict | pjenvey | 2006-07-27 | 1 | -1/+1 |
| | | | | o fixed the misleading ResponseHeaderDict deprecation warning | ||||
* | Added a middleware to clear out error bodies, making them more accessible to ↵ | ianb | 2006-07-14 | 1 | -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 ↵ | ianb | 2006-06-21 | 1 | -0/+39 |
| | | | | a function just before the first content is returned | ||||
* | fixed docstring example | ianb | 2006-06-15 | 1 | -1/+1 |
| | |||||
* | Added a warning to paste.wsgilib.add_close | ianb | 2006-05-31 | 1 | -0/+10 |
| | |||||
* | fix for example in docstring0.9.1 | ianb | 2006-05-07 | 1 | -1/+1 |
| | |||||
* | move warnings in paste.recursive; added conditional argument to ↵ | ianb | 2006-03-07 | 1 | -2/+31 |
| | | | | paste.wsgilib.intercept_output | ||||
* | don't worry about writing empty strings to wsgi.errors in simulated request | ianb | 2006-03-03 | 1 | -0/+2 |
| | |||||
* | Don't let unicode get through raw_interactive without an error | ianb | 2006-03-02 | 1 | -0/+4 |
| | |||||
* | Remove the print of exceptions, which can be safely ignored; was causing ↵ | ianb | 2006-02-28 | 1 | -3/+0 |
| | | | | paste.fixture to whine about errors being printed | ||||
* | Stupid typos from last commit | ianb | 2006-02-28 | 1 | -1/+4 |
| | |||||
* | If we don't expect errors in wsgi.errors, raise an exception immediately ↵ | ianb | 2006-02-28 | 1 | -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 ↵ | ianb | 2006-02-28 | 1 | -4/+4 |
| | | | | content as ASCII (?) | ||||
* | Added wsgilib.intercept_output to __all__; updated news.txt | ianb | 2006-01-09 | 1 | -1/+1 |
| | |||||
* | printing out debug information on 5xx messages for raw_interactive | cce | 2006-01-05 | 1 | -4/+3 |
| | |||||
* | Set HTTP_HOST in raw_interactive | ianb | 2005-12-30 | 1 | -0/+3 |
| | |||||
* | - got rid of unnecessary trailing spaces in httpexceptions | cce | 2005-12-23 | 1 | -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 ↵ | ianb | 2005-12-18 | 1 | -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, ↵ | ianb | 2005-12-15 | 1 | -0/+62 |
| | | | | along with another error catching function for making it work | ||||
* | Move things to using request module instead of wsgilib | ianb | 2005-12-14 | 1 | -1/+1 |
| | |||||
* | Python 2.3 doesn't like that reassignment | ianb | 2005-12-14 | 1 | -1/+4 |
| |