Package: twisted / 20.3.0-7

Metadata

Package Version Patches format
twisted 20.3.0-7 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 wxpython3.0.patch | (download)

src/twisted/internet/wxreactor.py | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 wxpython3.0

Fix imports from the wx package.

0002 combinedlog.patch | (download)

src/twisted/web/http.py | 2 1 + 1 - 0 !
src/twisted/web/test/test_web.py | 16 8 + 8 - 0 !
2 files changed, 9 insertions(+), 9 deletions(-)

 combinedlog

Preserve backward-compatibility in the way the client IP of a request
is logged by the twisted.web HTTP server.

Bug: https://twistedmatrix.com/trac/ticket/7730
Bug-Debian https://bugs.debian.org/772629

0003 sphinx theme.patch | (download)

docs/conf.py | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 sphinx-theme

Set the sphinx theme.

0004 localIntersphinx.patch | (download)

docs/conf.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 localintersphinx

Use local copies of object.inv for building documentation.

0005 insecure pythonpath.patch | (download)

docs/core/howto/quotes.rst | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 insecure-pythonpath

Fix vulnerable example of PYTHONPATH.

0006 fix sphinx import path.patch | (download)

docs/conf.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix-sphinx-import-path

Adjust the import path in the Sphinx configuration file to
match the new source files location (src/).

0008 sort option keys.patch | (download)

src/twisted/python/usage.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 sort-option-keys

Fix flaky twisted.test.test_main.MainTests.test_twisted which fails
if options are not in the same order.

See https://twistedmatrix.com/trac/attachment/ticket/8923.

0009 no stderr in test_ckeygen.patch | (download)

src/twisted/conch/test/test_ckeygen.py | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

 no-stderr-in-test_ckeygen

Fix an test writing to stderr. See:

https://twistedmatrix.com/trac/ticket/8924

0010 handle setlocale test failure.patch | (download)

src/twisted/conch/test/test_cftp.py | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 handle-setlocale-test-failure

Gracefully handle setlocale failures during the test suite (e.g
when running in a container).

0010 spurious failure in setup unit tests.patch | (download)

src/twisted/python/test/test_setup.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 spurious-failure-in-setup-unit-tests


0012 Skip test for empty cypher string openssl does not t.patch | (download)

src/twisted/test/test_sslverify.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 skip test for empty cypher string, openssl does not throw error now

See: https://github.com/openssl/openssl/issues/7725

0013 Drop test_givesMeaningfulErrorMessageIfNoCipherMatch.patch | (download)

src/twisted/test/test_sslverify.py | 15 0 + 15 - 0 !
1 file changed, 15 deletions(-)

 drop test_givesmeaningfulerrormessageifnociphermatches

with OpenSSL 1.1.1 no ValueError is raised

0015 Fix tests to expect new web request logging format.patch | (download)

src/twisted/web/test/test_web.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix tests to expect new web request logging format


0016 Try exec ing ckeygen3 if ckeygen was not found.patch | (download)

src/twisted/conch/test/test_ckeygen.py | 18 13 + 5 - 0 !
1 file changed, 13 insertions(+), 5 deletions(-)

 try exec'ing ckeygen3 if ckeygen was not found

The ckeygen binary is named ckeygen3 "now".

0017 Add digestmod parameter to HMAC.__init__ invocations.patch | (download)

src/twisted/cred/credentials.py | 3 2 + 1 - 0 !
src/twisted/cred/test/test_cramauth.py | 11 8 + 3 - 0 !
src/twisted/mail/test/test_pop3.py | 4 3 + 1 - 0 !
3 files changed, 13 insertions(+), 5 deletions(-)

 add digestmod parameter to hmac.__init__() invocations

This parameter is now required on Python 3.8+

0018 Make the twisted tests work when pyOpenSSL deletes N.patch | (download)

src/twisted/test/test_sslverify.py | 7 5 + 2 - 0 !
1 file changed, 5 insertions(+), 2 deletions(-)

 make the twisted tests work when pyopenssl deletes npn

0019 Replace base64. string functions to fix py3.9 suppor.patch | (download)

src/twisted/conch/scripts/tkconch.py | 9 5 + 4 - 0 !
src/twisted/conch/test/test_keys.py | 2 1 + 1 - 0 !
src/twisted/mail/pop3.py | 4 2 + 2 - 0 !
src/twisted/mail/test/test_pop3.py | 4 2 + 2 - 0 !
src/twisted/persisted/dirdbm.py | 4 2 + 2 - 0 !
src/twisted/web/http.py | 2 1 + 1 - 0 !
src/twisted/web/test/test_http.py | 6 3 + 3 - 0 !
7 files changed, 16 insertions(+), 15 deletions(-)

 replace base64.*string() functions to fix py3.9 support

Replace base64.decodestring() and .encodestring() functions as they
were deprecated since Python 3.1 in favor of (equivalent) .decodebytes()
and .encodebytes(), and were eventually removed in Python 3.9.

While at it, replace most of their uses with base64.b64encode()
and .b64decode() that are preferable to the former wrt ticket #6446,
and they do not introduce line breaks that the twisted code usually
discarded.

Use .decodebytes() and .encodebytes() in DirDBM as it seems to rely
on the exact presence of newlines, and changing that would break
backwards compatibility.

Submitted by: Michal Gorny <mgorny@gentoo.org>

0020 Fix imap4 utf 7 codec lookup function for Python 3.9.patch | (download)

src/twisted/mail/imap4.py | 13 12 + 1 - 0 !
1 file changed, 12 insertions(+), 1 deletion(-)

 fix imap4-utf-7 codec lookup function for python 3.9

Python 3.9 normalizes the codec name into 'imap4_utf_7' rather than
'imap4-utf-7', and therefore the lookup function needs to account
for the former name.  Transform the latter locally to preserve support
for all Python versions.

Submitted by:  Michal Gorny <mgorny@gentoo.org>

0021 Merge 9652 wiml mktime Allow mktime to raise EOVERFL.patch | (download)

src/twisted/newsfragments/9652.misc | 1 1 + 0 - 0 !
src/twisted/test/test_log.py | 29 21 + 8 - 0 !
2 files changed, 22 insertions(+), 8 deletions(-)

 merge 9652-wiml-mktime: allow mktime() to raise eoverflow if isdst=1
 and there's no DST.

0022 increase size of FFDH keys for conch testing.patch | (download)

src/twisted/conch/test/test_transport.py | 36 26 + 10 - 0 !
1 file changed, 26 insertions(+), 10 deletions(-)

 increase size of ffdh keys for conch testing

0023 Merge 9801 rodrigc cgi Change import of cgi.parse_qs.patch | (download)

src/twisted/web/client.py | 17 8 + 9 - 0 !
src/twisted/web/http.py | 50 25 + 25 - 0 !
src/twisted/web/test/test_http.py | 41 5 + 36 - 0 !
src/twisted/web/test/test_webclient.py | 5 1 + 4 - 0 !
4 files changed, 39 insertions(+), 74 deletions(-)

 merge 9801-rodrigc-cgi: change import of cgi.parse_qs to
 urllib.parse.parse_qs

0024 fixed corrupted iqmp value in test RSA key.patch | (download)

src/twisted/conch/test/keydata.py | 46 25 + 21 - 0 !
1 file changed, 25 insertions(+), 21 deletions(-)

 fixed corrupted iqmp value in test rsa key

0025 Skip failing twisted.web.test.test_http.QueryArgumen.patch | (download)

src/twisted/web/test/test_http.py | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 skip failing
 twisted.web.test.test_http.QueryArgumentsTests.testParseqs

https://github.com/twisted/twisted/pull/1523