summaryrefslogtreecommitdiff
path: root/paste
Commit message (Collapse)AuthorAgeFilesLines
* Merged in onovy/paste (pull request #36)Chris Dent2018-10-231-1/+1
|\ | | | | | | Use correct variable when building message for exception
| * Use correct variable when building message for exceptionOnd?ej Nov?2016-03-101-1/+1
| | | | | | | | | | Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695253
* | Merged in jeblair/paste (pull request #38)Chris Dent2018-10-231-1/+5
|\ \ | | | | | | | | | Fix error on httpserver shutdown
| * | Fix error on httpserver shutdownJames E. Blair2017-06-061-1/+5
| |/ | | | | | | | | | | | | | | | | If a worker thread takes longer than 0.5s to shut down, we try to kill it. However, if it manages to stop between the 0.5s timeout and the call to kill_worker, kill_worker will raise an exception and abort shutdown. Handle that case with an exception handler.
* | Don't raise StopIteration from generator, return insteadMiro Hron?ok2018-06-081-1/+1
|/ | | | See https://www.python.org/dev/peps/pep-0479/
* 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.
* | Python 3: let html_quote() and url() always return the same typeNils Philippsen2015-11-121-4/+4
| | | | | | | | Mixing binary and text types causes errors later on.
* | Python 3: dict.items() doesn't return a list anymoreNils Philippsen2015-11-122-4/+3
| | | | | | | | | | Use sorted() instead, which works on lists as well as dict_items objects.
* | Python 3: avoid spurious warningsNils Philippsen2015-09-091-1/+1
| | | | | | | | | | The dict.has_keys() method doesn't exist anymore in python 3, check if the locals() object has a .keys() method instead.
* | Python 3: Don't mangle strangely encoded inputNils Philippsen2015-08-192-3/+11
| | | | | | | | | | | | | | | | In Python 3, cgi.FieldStorage needs to know about encodings like shiftjis in order to decode it properly (in Python 2 it's simply not decoded at all). Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
* | Python 3: Always encode params if passed as text typesNils Philippsen2015-08-191-2/+2
|/ | | | Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
* Don't display invalid error message when socket in useMarc Abramowitz2015-05-111-2/+4
| | | | | | | | | | | | | Previously, when the listening socket was already in use, this error message was displayed: ... File "/private/tmp/n/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 1106, in server_close self.thread_pool.shutdown(60) AttributeError: 'WSGIThreadPoolServer' object has no attribute 'thread_pool' We prevent this by checking if `self` has a `thread_pool` attribute before trying to reference it. Fixes issue #5 (https://bitbucket.org/ianb/paste/issue/5/invalid-error-message-when-the-socket-is)
* Merged in aodag/paste-py3/fix-has_key (pull request #25)Marc Abramowitz2015-05-112-2/+2
|\ | | | | | | replace ``has_key`` method to ``in`` operator #9
| * replace ``has_key`` method to ``in`` operator #9fix-has_keyaodag2015-05-022-2/+2
| |
* | Merged in marsupial2k/paste (pull request #6)Marc Abramowitz2015-05-112-0/+7
|\ \ | | | | | | | | | Add HTTP exception for new code 429 "Too Many Requests"
| * | Add HTTP 429 "Too Many Requests"Neil Williams2011-12-232-0/+7
| | | | | | | | | | | | http://www.ietf.org/id/draft-nottingham-http-new-status-03.txt
* | | Merged in ls_/paste (pull request #20)Marc Abramowitz2015-05-111-3/+3
|\ \ \ | | | | | | | | | | | | Escape CGI environment variables in HTTP 404 responses
| * | | Escape CGI environment variables in HTTP 404 responsesKaan Kivilcim2014-08-251-3/+3
| | | |
* | | | Replace cgi.parse_qsl w/ six.moves.urllib.parse.parse_sqleliminate_cgi_parse_qsl_2eliminate_cgi_parse_qslMarc Abramowitz2015-04-303-9/+8
| |_|/ |/| | | | | | | | | | | because `cgi.parse_qsl` is deprecated, according to https://docs.python.org/2/library/cgi.html#cgi.parse_qsl
* | | Fix Python 3 issue in paste/fixture.pyMarc Abramowitz2015-04-301-1/+1
| | | | | | | | | | | | by wrapping `map` with `list`.
* | | Make utility function private: _get_headersBB-4Marc Abramowitz2015-04-301-4/+9
| | |
* | | Make get_headers default to Python 3; fallback to Python 2Marc Abramowitz2015-04-301-4/+4
| | | | | | | | | | | | as suggested by @haypo at https://bitbucket.org/ianb/paste/pull-request/22/fix-improper-commas-in-request-headers-in/diff#comment-6583636
* | | Make get all values of a header work on both Python 2 and 3Marc Abramowitz2015-04-281-1/+9
| | |
* | | Fix improper commas in request headers in wsgi_environMarc Abramowitz2015-04-271-1/+1
| | | | | | | | | | | | | | | | | | Revert from using `get` to `getheaders` method. fixes #4
* | | Revert change on paste.util.quoting.html_quote()Victor Stinner2015-04-231-1/+4
| | | | | | | | | | | | | | | On Python 2, html_quote(unicode) returns again bytes to restore backward compatibility.
* | | Fix paste.util.html_quote(unicode): don't encode the string to escape itVictor Stinner2015-04-221-25/+1
| | |
* | | Fix hash_identifier() on Python 3Victor Stinner2015-04-221-1/+5
| | | | | | | | | | | | Fix paste.exceptions.serial_number_generator.hash_identifier()
* | | Port proxy to Python 3Victor Stinner2015-04-221-20/+26
| | | | | | | | | | | | Use Message.items() method instead of HTTPMessage.headers attribute.
* | | Merged in mfrobben/paste (pull request #21)Victor Stinner2015-04-2262-7361/+2958
|\ \ \ | | | | | | | | | | | | Fix bad reference to iterator variable
| * | | Fix pyflakes warningsVictor Stinner2015-04-227-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | * Remove unused variables * Remove unused imports * Remove dead code
| * | | Fix paste.util.threadedprint.uninstall()Victor Stinner2015-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | Rename duplicated uninstall() function to uninstall_stdin() and fix typo in variable name (_oldstin => _oldstdin).
| * | | Fix loop_pos.__repr__() of paste.util.looperVictor Stinner2015-04-221-1/+1
| | | | | | | | | | | | | | | | Use self.pos instead of an unknown pos variable.
| * | | Get parse_querystring() function directly from the paste.request module,Victor Stinner2015-04-222-3/+3
| | | | | | | | | | | | | | | | instead of using wsgilib.parse_querystring() alias.
| * | | Fix paste.debug.fsdiff.Snapshot._ignore_file()Victor Stinner2015-04-221-7/+0
| | | | | | | | | | | | | | | | Remove a duplicated method, keep the implementation using ignore_wildcards.
| * | | Fix fixture on Python 3Victor Stinner2015-04-221-23/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wsgi.input must be a binary file, not a text file * Fix fixture.TestApp.__str__() on Python 3: decode body from UTF-8 (with xmlcharrefreplace). * Fix fixture.TestResponse.goto() on Python 3: regex must use bytes, not Unicode. * Fix TestApp._check_status() on Python 3 - Decode body from UTF-8 (with xmlcharrefreplace) to format the error message. - Fix TestApp.encode_multipart() on Python 3: HTTP body must be bytes: encode lines to utf8 and use byte string literals. - Fix TestApp.post() on Python 3: default params must be bytes - Fix TestResponse.__repr__() on Python 3 - Fix TestApp on Python 3: encode params values to UTF-8 - Port TestApp._gen_request() to Python 3
| * | | Port paste.debug.debugapp to Python 3Victor Stinner2015-04-221-1/+1
| | | |
| * | | Remove UserDict24Victor Stinner2015-04-222-173/+2
| | | |
| * | | Remove subprocess24Victor Stinner2015-04-223-1160/+2
| | | |
| * | | Remove string24Victor Stinner2015-04-221-531/+0
| | | |
| * | | Fix some Python 3 issues in util.templateVictor Stinner2015-04-221-4/+4
| | | |
| * | | Port url module to Python 3Victor Stinner2015-04-221-6/+11
| | | |
| * | | Port util.dateinterval to Python 3Victor Stinner2015-04-221-1/+1
| | | |
| * | | Port looper_iter to Python 3Victor Stinner2015-04-221-1/+2
| | | |
| * | | Remove doctest24Victor Stinner2015-04-221-2665/+0
| | | |
| * | | Fix fileapp on Python 3Victor Stinner2015-04-221-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't compare None with int * Add __next__() method (alias to next()). * HTTP body must be bytes * Don't use string.letters but an hardcoded string to not depend on the locale.
| * | | Fix grantip on Python 3Victor Stinner2015-04-221-1/+1
| | | |
| * | | Port test_errordocument on Python 3Victor Stinner2015-04-221-3/+10
| | | | | | | | | | | | | | | | On Python 3, encode body to UTF-8