Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Updated usage of deprecated base64.decodestring() to bas64.decodebytes() #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django_bouncy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def verify_notification(data):
"""
pemfile = grab_keyfile(data['SigningCertURL'])
cert = crypto.load_certificate(crypto.FILETYPE_PEM, pemfile)
signature = base64.decodestring(six.b(data['Signature']))
signature = base64.decodebytes(six.b(data['Signature']))

if data['Type'] == "Notification":
hash_format = NOTIFICATION_HASH_FORMAT
Expand Down