← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~jugmac00/turnip:replace-deprecated-method into turnip:master

 

Jürgen Gmach has proposed merging ~jugmac00/turnip:replace-deprecated-method into turnip:master.

Commit message:
replace deprecated base64.decodestring by base64.decodebytes

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~jugmac00/turnip/+git/turnip/+merge/414169
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~jugmac00/turnip:replace-deprecated-method into turnip:master.
diff --git a/turnip/pack/http.py b/turnip/pack/http.py
index 24bb606..037bb58 100644
--- a/turnip/pack/http.py
+++ b/turnip/pack/http.py
@@ -493,7 +493,7 @@ class TurnipAuthCookieSigner(AuthCookieSigner):
         sha1 = paste.auth.cookie.sha1
         hmac = paste.auth.cookie.hmac
         make_time = paste.auth.cookie.make_time
-        decode = base64.decodestring(
+        decode = base64.decodebytes(
             cookie.replace(b"_", b"/").replace(b"~", b"="))
         signature = decode[:_signature_size]
         expires = decode[_signature_size:_header_size]