This commit is contained in:
Miroslav Stampar
2019-12-02 10:10:58 +01:00
parent 20d875a8ce
commit 948903f232
3 changed files with 9 additions and 3 deletions

View File

@@ -31,6 +31,11 @@ from lib.core.settings import UNICODE_ENCODING
from thirdparty import six
from thirdparty.six import unichr as _unichr
try:
from html import escape as htmlEscape
except ImportError:
from cgi import escape as htmlEscape
def base64pickle(value):
"""
Serializes (with pickle) and encodes to Base64 format supplied (binary) value