| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
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 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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| | |
|
| |
| |
| |
| | |
On Python 3, encode body to UTF-8
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Encode HTTP body to UTF-8
|
| |
| |
| |
| |
| | |
* String must be a bytes string: replace str with six.binary_type
* Port util.quoting to Python 3
|
| |
| |
| |
| |
| |
| | |
* Call list.sort() with a key function instead of a compare function.
* Fix FakeRequest in httpheaders on Python 3: urllib.request now expects
properties, not getters (get_xxx() methods).
|
| |
| |
| |
| | |
Reverted change: "Don't penalize streaming applications"
|
| |
| |
| |
| |
| | |
* Encode body to UTF-8 on Python 3
* Encode log to UTF-8 on Python 3
|
| |
| |
| |
| | |
Use bytes, not Unicode
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| |
| | |
* Expect bytes, not Unicode
* Fix ErrorWrapper on Python 3: write() parameter must be bytes
|
| | |
|
| |
| |
| |
| | |
HTTP body is bytes
|
| |
| |
| |
| |
| | |
* Replace string.atoi() with int()
* Don't compare None with int
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
HTTP body must be bytes. Don't check if __iter__() method to check if content
is a list or tuple, because bytes and str now have this method on Python 3.
Instead, check explicitly for bytes and str types using the six module.
Port wsgiwrappers test to Python 3, fix bytes/unicode issues:
* HTTP body must be bytes
* Filenames are native strings, request ensures that filenames are unicode
|
| |
| |
| |
| |
| |
| | |
* md5() and hmac expects bytes: on Python 3, encode text to utf-8
* Don't compare None with int
* HTTP body must be bytes
|
| |
| |
| |
| | |
Only encode values on Python 2: Python 3 expects text, not bytes.
|
| |
| |
| |
| |
| |
| |
| | |
WSGI input must be a binary file (BytesIO), not a text file (StringIO).
Add also the missing __len__() method to EnvironHeaders, it's now required on
Python 3 by the MutableMapping ABC.
|
| |
| |
| |
| | |
md5() requires bytes: on Python 3, encode text to utf-8
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
* print syntax
* replace "except Exception, exc:" with "except Exception as exc:"
|
| | |
|
| | |
|
| |
| |
| |
| | |
modify global variables
|
| | |
|