mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-14 09:58:37 +01:00
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')
|
logger = logging.getLogger('helpdesk')
|
||||||
|
|
||||||
|
|
||||||
def query_to_base64(query):
|
def query_to_base64(query):
|
||||||
"""
|
"""
|
||||||
Converts a query dict object to a base64-encoded bytes object.
|
Converts a query dict object to a base64-encoded bytes object.
|
||||||
"""
|
"""
|
||||||
return b64encode(json.dumps(query).encode('UTF-8'))
|
return b64encode(json.dumps(query).encode('UTF-8'))
|
||||||
|
|
||||||
|
|
||||||
def query_from_base64(b64data):
|
def query_from_base64(b64data):
|
||||||
"""
|
"""
|
||||||
Converts base64-encoded bytes object back to a query dict object.
|
Converts base64-encoded bytes object back to a query dict object.
|
||||||
|
Loading…
Reference in New Issue
Block a user