| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Python 3 fixes
|
| |
| |
| |
| |
| |
| |
| |
| | |
In Python3, the iterator protocol uses a method named __next__(), not
next(). (For compatibility with Python 2.6, we still need to support
both though.) Ensure all iterator objects support the Python3 protocol.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
|
|/
|
|
|
|
| |
This will cause a runtime error in Python 3.7, due to PEP479.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
|
|
|
|
| |
We can clean it up better as required.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pytest exposes many warnings, some but not all of which are cleaned
up here. The main switch is to use html.escape instead of cgi.escape.
This inspired the addition of 'future' to requirements.
The remaining warnings are related to pytest deprecations or over-eager
test discovery.
It is perhaps ironic that the switch to pytest is to avoid nose being
mostly dead, and now we are using features in pytest that pytest wants
to make dead. These are left for later cleanups, which means that
running the tests is noisy.
|
|\
| |
| | |
Switch from nose to pytest
|
| | |
|
| |
| |
| |
| |
| | |
pythonpaste.org no longer exists so we need to remove those
links
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The proxy test relied on pythonpaste.org being up and existing.
It is neither. So instead we use httpbin.org which is often used
for this kind of thing. Unfortunately httpbin is now a react app
which means a lot of the HTML is generated client-side, which
means we need to choose wisely.
As the original comments indicate, the test is not particularly
robust and remains so.
|
|\ \
| | |
| | |
| | | |
Use correct variable when building message for exception
|
| | |
| | |
| | |
| | |
| | | |
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695253
|
| | | |
|
| |\ \
| | |/
| | |
| | | |
Bump version to 2.0.3
|
| | | |
|
| |/
| |
| |
| | |
and add news to `docs/news.txt`.
|
| |\
| | |
| | |
| | | |
paste.wsgilib.add_close: Add __next__ method
|
| | |
| | |
| | |
| | | |
so we avoid logic duplication
|
| | | |
|
| | | |
|
| | | |
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | | |
to support using `add_close` objects as iterators on Python 3.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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)
|
| | | |\
| | | | |
| | | | |
| | | | | |
replace ``has_key`` method to ``in`` operator #9
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
by wrapping `map` with `list`.
|
| | | | |\
| | | | | |
| | | | | |
| | | | | | |
Fix improper commas in request headers in wsgi_environ
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
On Python 2, html_quote(unicode) returns again bytes to restore backward
compatibility.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Move the six dependency from extras_require to install_requires.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add links to Paste websites and related projects
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fix paste.exceptions.serial_number_generator.hash_identifier()
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Use Message.items() method instead of HTTPMessage.headers attribute.
|
| | | | | |\
| | | | | | |
| | | | | | |
| | | | | | | |
Fix bad reference to iterator variable
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* Remove unused imports
* Remove unused variables
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* Remove unused variables
* Remove unused imports
* Remove dead code
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Rename duplicated uninstall() function to uninstall_stdin() and fix typo in
variable name (_oldstin => _oldstdin).
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Use self.pos instead of an unknown pos variable.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
instead of using wsgilib.parse_querystring() alias.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Remove a duplicated method, keep the implementation using ignore_wildcards.
|
| | | | | | | |
|
| | | | | | | |
|