PEP-8 fixes for lib.py

This commit is contained in:
Garret Wassermann 2018-12-21 19:24:33 -05:00
parent 967862e739
commit ce51036c6c

View File

@ -26,12 +26,14 @@ import json
logger = logging.getLogger('helpdesk')
def query_to_base64(query):
"""
Converts a query dict object to a base64-encoded bytes object.
"""
return b64encode(json.dumps(query).encode('UTF-8'))
def query_from_base64(b64data):
"""
Converts base64-encoded bytes object back to a query dict object.