Merge python3-reflect-5929-2

Author: multani
Reviewers: radix, thijs, rwall, glyph
Fixes: #5929
Refs: #6239, #6986, #6859

Port most of twisted.python.reflect to Python3.

Porting objgrep posed some problems and has been moved to a separate ticket #6986.

Porting getcurrent and isinst also posed problems and it was decided to deprecate them in  #6859.



git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41754 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge serial-number-arithmetic-6672

Author: BobNovas, rwall
Reviewers: exarkun, glyph
Fixes: #6672
Refs: #5454, #6665

A private Serial Number Arithmetic module for manipulating Serial Numbers
defined in RFC1982. This will be used for comparison of DNS zone serial numbers
and RRSIG inception dates.



git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41756 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge pyflakes-pair-6993

Author: adiroiban
Reviewer: exarkun
Fixes: #6993

Remove unused imports from modules in Twisted Pair.  Twisted Pair is now
"pyflakes clean".


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41765 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge pyflakes-news-6991

Author: adiroiban
Reviewer: hawkowl
Fixes: #6991

Removes some unneeded imports, making Twisted News "pyflakes clean".

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41767 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge rdbms-docs-format-6945

Author: hawkowl
Reviewers: adiroiban, rwall
Fixes: #6945

projects/core/howto/rdbms.rst is now a properly formatted rST document.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41769 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge servers-docs-format-6946: projects/core/howto/servers.rst should be properly formatted

Author: hawkowl
Reviewers: adiroiban, rwall, hynek
Fixes: #6946

Makes the servers documentation a properly formatted rST file, with some extra content improvements.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41771 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge pyflakes-pair-6993

Author: adiroiban
Reviewer: rwall
Fixes: #6990

Remove unused imports from modules in Twisted Names. Twisted Names is now
"pyflakes clean".



git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41779 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge threadpool-adjust-hang-7011

Author: hawkowl
Reviewer: exarkun
Fixes: #7011

twisted.python.threadpool.ThreadPool no longer starts new workers when its pool size is changed while the pool is not running.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41786 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge deprecate-lore-6907: Deprecate Twisted Lore

Author: hawkowl
Reviewer: exarkun
Fixes: #6907

This deprecates Twisted Lore, in favor of using Sphinx, from Twisted 14.0.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41790 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge setup3-missing-6929-2. Python 3 module list now has tests to catch typos.

Author: itamar
Review: hynek
Fixes: #6929


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41839 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge ninja-in-ecdhe-6586

Author: hynek
Reviewer: lvh
Fixes: #6586

OpenSSLCertificateOptions now tries best-effort to support ECDHE for servers.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41888 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge merge-reflect-py3-6239: Merge `twisted/python/_reflectpy3.py` into `twisted/python/reflect.py`

Author: multani
Reviewer: hawkowl
Fixes: #6239

Merge `twisted/python/_reflectpy3.py` into `twisted/python/reflect.py`, along with the associated test cases.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41904 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge deprecate-functions-reflect-6859: Deprecate getcurrent and isinst in twisted.python.reflect

Author: multani
Reviewer: hawkowl
Fixes: #6859

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41908 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge require-module-api-7014: A requireModule() style API

Author: adiroiban
Reviewer: hawkowl
Fixes: #7014

Introduces an API to allow conditionally importing optional modules.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41915 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge positioning-3926-3: twisted.positioning, a better positioning framework

Author: lvh, hawkowl
Reviewer: lvh, hawkowl, tom.prince, glyph, exarkun, tazle, dash, therve, ashfall
Fixes: #3926

A better positioning framework. This will replace twisted.protocols.gps.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41920 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge ordered-constants-6523-2: Constants are now ordered to match definition order.

Author: wsanchez
Reviewer: exarkun, hawkowl
Fixes: #6523

The order in which constants are defined is now also the comparison order for constants.  This is now explicitly implemented with tests and the documentation has been updated.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41925 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge trusted-ca-openssl-defaults-5446-2: add trustRoot argument to CertificateOptions, and platformTrust API which is what you should always pass to it.

Author: glyph
Reviewer: hynek
Fixes: #5446

Twisted's TLS support now provides a way to ask for user-configured trust roots
rather than having to manually configure such certificate authority
certificates yourself.  twisted.internet.ssl.CertificateOptions now accepts a
new argument, trustRoot, which combines verification flags and trust sources,
as well as a new function that provides a value for that argument,
twisted.internet.ssl.platformTrust, which allows using the trusted platform
certificate authorities from OpenSSL for certificate verification.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41934 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge check-for-generator-functions-3917: Report test methods which are generator functions in trial TestCases as errors.

Author: habnabit
Reviewers: Julian, jerith
Fixes: #3917

Previously, if a trial TestCase had a test method which was a
generator function, the test would appear to pass even though its
code hadn't run at all. This behavior sometimes occurred if a
test was intended to be decorated with defer.inlineCallbacks, but
the test writer had forgotten to apply the decorator.



git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41938 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge clean-up-web-static-docs-7049

Authors: Alex, hawkowl
Reviewers: hawkowl, Alex
Fixes: #7049

Fixes whitespace and syntax in web-in-60/static-content.rst.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41977 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
Merge agent-trustRoot-7042: Agent uses platformTrust by default.

Author: alex, dreid, radix

Reviewer: glyph, itamar, exarkun

Fixes: #7042

twisted.web.client.Agent now verifies that the provided server certificate in a TLS connection is trusted by the platform. Until #4888 is completed there are still known MITM attack vectors against Agent. Applications which were relying on the absence of certificate checking will now receive an SSL error.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@41986 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb