forked from extern/django-helpdesk
PEP-8 fixes for lib.py
This commit is contained in:
parent
967862e739
commit
ce51036c6c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user