Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2857 deprecations #428

Merged
merged 14 commits into from
Jul 28, 2017
Merged

2857 deprecations #428

merged 14 commits into from
Jul 28, 2017

Conversation

warner
Copy link
Member

@warner warner commented Jul 25, 2017

This ought to fix all the outstanding deprecation warnings in the tahoe codebase.

There are two sets of deprecation warnings from outside our control:

  • pyopenssl is importing its own deprecated module (OpenSSL.rand): the plan is to remove that import
  • twisted.conch.ssh.Key.sign() is using a deprecated pyca/Cryptography feature (cryptography/hazmat/backends/openssl/rsa.py, "signer and verifier" are deprecated in favor of "sign and verify"). I haven't yet looked to see if there's already a bug for that one.

@codecov-io
Copy link

codecov-io commented Jul 27, 2017

Codecov Report

Merging #428 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #428   +/-   ##
=======================================
  Coverage   87.99%   87.99%           
=======================================
  Files         147      147           
  Lines       27836    27836           
  Branches     3974     3974           
=======================================
  Hits        24495    24495           
  Misses       2624     2624           
  Partials      717      717
Impacted Files Coverage Δ
src/allmydata/web/common.py 93.22% <0%> (-0.34%) ⬇️
src/allmydata/mutable/servermap.py 93.55% <0%> (-0.17%) ⬇️
src/allmydata/web/status.py 82.86% <0%> (-0.12%) ⬇️
src/allmydata/immutable/upload.py 95.53% <0%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d018a07...05317d4. Read the comment docs.

warner added 14 commits July 27, 2017 16:31
This also changes the tests to handle the new API: URL can be unicode, and
the returned Headers object is not a dictionary.
Add WebErrorMixin.assertHTTPError, to replace (getPage + shouldHTTPError)
specifically everywhere we use self.shouldRedirect2
This removes many uses of self.POST (since shouldReplaceTo does its own
HTTP), which will make it easier to remove client.getPage from POST.
Since POST() is about to lose followRedirect=True
and remove the followRedirect= argument from POST
and update to inlineCallbacks while we're in there
@warner warner merged commit 05317d4 into tahoe-lafs:master Jul 28, 2017
@warner warner deleted the 2857-deprecations branch July 28, 2017 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants