Skip to content

Commit

Permalink
Merge branch 'trunk' into 9420-prevent-http-header-injection
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Oct 19, 2018
2 parents d4ff65f + 4f14c02 commit 388486e
Show file tree
Hide file tree
Showing 49 changed files with 401 additions and 281 deletions.
101 changes: 101 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,107 @@ http://twistedmatrix.com/trac/ticket/<number>

.. towncrier release notes start
Twisted 18.9.0 (2018-10-10)
===========================

Features
--------

- twisted.internet._sslverify.ClientTLSOptions no longer raises IDNAError when given an IPv6 address as a hostname in a HTTPS URL. (#9433)
- The repr() of a twisted.internet.base.DelayedCall now encodes the same information as its str(), exposing details of its scheduling and target callable. (#9481)
- Python 3.7 is now supported. (#9502)


Bugfixes
--------

- twisted.logger.LogBeginner's default critical observer now prints tracebacks for new and legacy log system events through the use of the new eventAsText API. This API also does not raise an error for non-ascii encoded data in Python2, it attempts as well as possible to format the traceback. (#7927)
- Syntax error under Python 3.7 fixed for twisted.conch.manhole and
twisted.main.imap4. (#9384)
- `trial -j` reports tracebacks on test failures under Python 3. (#9436)
- Properly format multi-byte and non-ascii encoded data in a traceback. (#9456)
- twisted.python.rebuild now functions on Python 3.7. (#9492)
- HTTP/2 server connections will no longer time out active downloads that take too long. (#9529)


Improved Documentation
----------------------

- Several minor formatting problems in the API documentation have been corrected. (#9461)
- The documentation of twisted.internet.defer.Deferred.fromFuture() has been updated to reflect upstream changes. (#9539)


Deprecations and Removals
-------------------------

- async keyword argument is deprecated in twisted.conch.manhole
(ManholeInterpreter.write and Manhole.add) and in
twisted.main.imap4.IMAP4Server.sendUntaggedResponse,
isAsync keyword argument is introduced instead. (#9384)


Misc
----

- #9379, #9485, #9489, #9499, #9501, #9511, #9514, #9523, #9524, #9525, #9538


Conch
-----

Bugfixes
~~~~~~~~

- twisted.conch.keys.Key.public returns the same twisted.conch.keys.Key instance when it is already a public key instead of failing with an exception. (#9441)
- RSA private keys are no longer corrupted during loading, allowing OpenSSL's fast-path to operate for RSA signing. (#9518)


Improved Documentation
~~~~~~~~~~~~~~~~~~~~~~

- The documentation for IConchUser.gotGlobalRequest() is more accurate. (#9413)


Deprecations and Removals
~~~~~~~~~~~~~~~~~~~~~~~~~

- twisted.conch.ssh.filetransfer.ClientDirectory's use as an iterator has been deprecated. (#9527)


Web
---

Bugfixes
~~~~~~~~

- twisted.web.server.Request.getSession now returns a new session if the
previous session has expired. (#9288)


Misc
~~~~

- #9479, #9480, #9482, #9491


Mail
----

No significant changes.


Words
-----

No significant changes.


Names
-----

No significant changes.


Twisted 18.7.0 (2018-07-10)
===========================

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ It includes modules for many different purposes, including the following:
- ``twisted.names``: DNS client and tools for making your own DNS servers
- ``twisted.trial``: A unit testing framework that integrates well with Twisted-based code.

Twisted supports all major system event loops -- ``select`` (all platforms), ``poll`` (most POSIX platforms), ``epoll`` (Linux), ``kqueue`` (FreeBSD, macOS), IOCP (Windows), and various GUI event loops (GTK+2/3, QT, wxWidgets).
Twisted supports all major system event loops -- ``select`` (all platforms), ``poll`` (most POSIX platforms), ``epoll`` (Linux), ``kqueue`` (FreeBSD, macOS), IOCP (Windows), and various GUI event loops (GTK+2/3, Qt, wxWidgets).
Third-party reactors can plug into Twisted, and provide support for additional event loops.


Expand Down
2 changes: 1 addition & 1 deletion src/twisted/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

from incremental import Version

__version__ = Version('Twisted', 18, 7, 0, dev=0)
__version__ = Version('Twisted', 18, 9, 1, dev=0)
__all__ = ["__version__"]
1 change: 1 addition & 0 deletions src/twisted/conch/newsfragments/8831.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Conch now uses pyca/cryptography for Diffie-Hellman key generation and agreement.
1 change: 0 additions & 1 deletion src/twisted/conch/newsfragments/9413.doc

This file was deleted.

1 change: 0 additions & 1 deletion src/twisted/conch/newsfragments/9441.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion src/twisted/conch/newsfragments/9518.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion src/twisted/conch/newsfragments/9527.removal

This file was deleted.

8 changes: 0 additions & 8 deletions src/twisted/conch/ssh/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ def getMP(data, count=1):



def _MPpow(x, y, z):
"""
Return the MP version of C{(x ** y) % z}.
"""
return MP(pow(x, y, z))



def ffs(c, s):
"""
first from second
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/conch/ssh/filetransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def __iter__(self):
def __next__(self):
warnings.warn(
('Using twisted.conch.ssh.filetransfer.ClientDirectory '
'as an iterator was deprecated in Twisted NEXT.'),
'as an iterator was deprecated in Twisted 18.9.0.'),
category=DeprecationWarning,
stacklevel=2)
if self.filesCache:
Expand Down
Loading

0 comments on commit 388486e

Please sign in to comment.