mirror of
https://github.com/django/daphne.git
synced 2025-05-31 19:23:14 +03:00
Wrap long line
This commit is contained in:
parent
64fe0cb77f
commit
d180f07b54
|
@ -10,7 +10,9 @@ def transfer_user(from_session, to_session):
|
|||
"""
|
||||
Transfers user from HTTP session to channel session.
|
||||
"""
|
||||
if auth.BACKEND_SESSION_KEY in from_session and auth.SESSION_KEY in from_session and auth.HASH_SESSION_KEY in from_session:
|
||||
if auth.BACKEND_SESSION_KEY in from_session and \
|
||||
auth.SESSION_KEY in from_session and \
|
||||
auth.HASH_SESSION_KEY in from_session:
|
||||
to_session[auth.BACKEND_SESSION_KEY] = from_session[auth.BACKEND_SESSION_KEY]
|
||||
to_session[auth.SESSION_KEY] = from_session[auth.SESSION_KEY]
|
||||
to_session[auth.HASH_SESSION_KEY] = from_session[auth.HASH_SESSION_KEY]
|
||||
|
|
Loading…
Reference in New Issue
Block a user