[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2857: stop using deprecated twisted.web.client.getPage

Tahoe-LAFS trac at tahoe-lafs.org
Wed Dec 28 20:39:44 UTC 2016


#2857: stop using deprecated twisted.web.client.getPage
--------------------+------------------------
 Reporter:  warner  |          Owner:
     Type:  task    |         Status:  new
 Priority:  normal  |      Milestone:  1.13.0
Component:  code    |        Version:  1.12.0
 Keywords:          |  Launchpad Bug:
--------------------+------------------------
 Twisted-16.7.0 is coming soon, and it deprecates
 `twisted.web.client.getPage` (and `client.HTTPClientFactory`). We use
 these in some of the unit tests, to fetch one of the HTTP WAPI/WUI pages
 and make sure the contents look right.

 We need to change these tests to use `twisted.web.client.Agent` instead,
 or a package named "treq", which is a Twisted flavor of the excellent (but
 blocking) `requests` library.

 This was caught by the Deprecations buildbot, testing Tahoe against
 Twisted trunk: https://tahoe-lafs.org/buildbot-tahoe-
 lafs/builders/deprecations/builds/160/steps/upcoming-
 deprecations/logs/warnings

 The Twisted deprecation ticket was
 https://twistedmatrix.com/trac/ticket/8960

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2857>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list