# -*- coding: utf-8 -*- import base64 def safe_base64_decode(s): eq_length=4-(len(s)%4) fullstr=s+b'='*eq_length return base64.b64decode(fullstr)
Sign in to make a reply
Phioton