summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Run tox with Python 3.6 and 3.7py37Miro Hron?ok2018-06-081-1/+1
|
* Don't raise StopIteration from generator, return insteadMiro Hron?ok2018-06-081-1/+1
| | | | See https://www.python.org/dev/peps/pep-0479/
* Added tag 2.0.3 for changeset 768835f3c1b7Marc Abramowitz2016-03-080-0/+0
|
* Merged in 2.0.3 (pull request #35)2.0.3Marc Abramowitz2016-03-080-0/+0
|\ | | | | | | Bump version to 2.0.3
* | Close branch 2.0.32.0.3Marc Abramowitz2016-03-080-0/+0
| |
* | Bump version to 2.0.3Marc Abramowitz2016-03-082-1/+29
|/ | | | and add news to `docs/news.txt`.
* Merged in msabramo/paste/python3_wsgilib_add_close_next (pull request #29)Marc Abramowitz2016-03-082-1/+57
|\ | | | | | | paste.wsgilib.add_close: Add __next__ method
| * Make add_close.next() leverage add_close.__next__()python3_wsgilib_add_close_nextMarc Abramowitz2016-03-081-1/+1
| | | | | | | | so we avoid logic duplication
| * Check paste.wsgilib.add_close._closedMarc Abramowitz2016-03-071-0/+2
| |
| * Uncomment/cleanup paste.wsgilib.app_close.__next__Marc Abramowitz2016-03-071-2/+2
| |
| * Add tests for `add_close` classMarc Abramowitz2016-03-071-0/+50
| |
| * 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.
* | | Merged in msabramo/paste/tox_coverage (pull request #33)Marc Abramowitz2016-03-081-4/+4
|\ \ \ | |/ / |/| | | | | tox.ini: Measure test coverage
| * | tox.ini: Measure test coveragetox_coverageMarc Abramowitz2016-03-071-4/+4
|/ /
* | Merged in msabramo/paste/tox_add_pypy (pull request #31)Marc Abramowitz2016-03-072-3/+3
|\ \ | | | | | | | | | Enable testing with pypy
| * | Enable testing with pypytox_add_pypyMarc Abramowitz2016-03-072-3/+3
|/ / | | | | | | | | | | | | | | This involved: - Adding "pypy" to the `tox.ini` envlist. - Adding `# doctest: +IGNORE_EXCEPTION_DETAIL` to 2 doctests, because the traceback message text is slightly different on PyPy.
* | Merged in msabramo/paste/tox_add_py35 (pull request #30)Marc Abramowitz2016-03-070-0/+0
|\ \ | | | | | | | | | tox.ini: Add py35 to envlist
* | | tox.ini: Add py35 to envlisttox_add_py35Marc Abramowitz2016-03-071-1/+1
|/ /
* | Merged in sphalerite/paste (pull request #26)Marc Abramowitz2016-03-071-1/+1
|\ \ | | | | | | | | | Change six requirement to >=1.4.0
| * | Change six requirement to >=1.4.0Linus Heckemann2015-06-101-1/+1
| |/
* | Merged in nilsph/paste/py3k (pull request #28)Marc Abramowitz2016-03-0711-19/+109
|\ \ | |/ |/| | | Py3k fixes
| * Python 3: use compatible print syntax in example textpy3kNils Philippsen2015-11-121-2/+2
| |
| * 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: ignore exception details in doctestsNils Philippsen2015-09-101-1/+4
| | | | | | | | Exception details are formatted differently between Python 2 and 3.
| * 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: add workarounds for cgi.FieldStorageNils Philippsen2015-08-201-1/+58
| | | | | | | | | | | | | | cgi.FieldStorage keeps some keys as str, some as the repr() of the byte-encoded key, duh. Fixes (well...): tests.test_cgiapp.test_form
| * Python 3: Use the same python interpreter for CGI scripts.Nils Philippsen2015-08-201-0/+23
| | | | | | | | Fixes tests.test_cgiapp
| * 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
| * Python 3: App must always return binary type.Nils Philippsen2015-08-191-1/+1
|/ | | | Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
* Added tag 2.0.2 for changeset 53f5c2cd7f50Marc Abramowitz2015-05-110-0/+0
|
* Update docs/news.txt for 2.0.22.0.2Marc Abramowitz2015-05-111-0/+21
|
* 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
| | | |
* | | | Merged in msabramo/paste/eliminate_cgi_parse_qsl (pull request #23)Marc Abramowitz2015-05-111-3/+2
|\ \ \ \ | | | | | | | | | | | | | | | Replace cgi.parse_qsl w/ six.moves.urllib.parse.parse_sql
| * \ \ \ Merged in ↵Marc Abramowitz2015-05-110-0/+0
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | msabramo/paste/test_wsgirequest_charset_use_UTF-8_instead_of_iso-8859-1 (pull request #24) test_wsgirequest_charset: Use UTF-8 instead of iso-8859-1
| * | | | test_wsgirequest_charset: Use UTF-8 instead of iso-8859-1test_wsgirequest_charset_use_UTF-8_instead_of_iso-8859-1Marc Abramowitz2015-04-301-3/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because it seems that the defacto standard for encoding URIs is to use UTF-8. I've been reading about url encoding and it seems like perhaps using an encoding other than UTF-8 is very non-standard and not well-supported (this test is trying to use `iso-8859-1`). From http://en.wikipedia.org/wiki/Percent-encoding > For a non-ASCII character, it is typically converted to its byte sequence in > UTF-8, and then each byte value is represented as above. > The generic URI syntax mandates that new URI schemes that provide for the > representation of character data in a URI must, in effect, represent > characters from the unreserved set without translation, and should convert > all other characters to bytes according to UTF-8, and then percent-encode > those values. This requirement was introduced in January 2005 with the > publication of RFC 3986 From http://tools.ietf.org/html/rfc3986: > Non-ASCII characters must first be encoded according to UTF-8 [STD63], and > then each octet of the corresponding UTF-8 sequence must be percent-encoded > to be represented as URI characters. URI producing applications must not use > percent-encoding in host unless it is used to represent a UTF-8 character > sequence. From http://tools.ietf.org/html/rfc3987: > Conversions from URIs to IRIs MUST NOT use any character encoding other than > UTF-8 in steps 3 and 4, even if it might be possible to guess from the > context that another character encoding than UTF-8 was used in the URI. For > example, the URI "http://www.example.org/r%E9sum%E9.html" might with some > guessing be interpreted to contain two e-acute characters encoded as > iso-8859-1. It must not be converted to an IRI containing these e-acute > characters. Otherwise, in the future the IRI will be mapped to > "http://www.example.org/r%C3%A9sum%C3%A9.html", which is a different URI from > "http://www.example.org/r%E9sum%E9.html". See issue #7, which I think this at least partially fixes.
* | | | 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`.
* | | Merged in msabramo/paste/BB-4 (pull request #22)Victor Stinner2015-04-300-0/+0
|\ \ \ | | | | | | | | | | | | Fix improper commas in request headers in wsgi_environ
* | | | 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
| | | |