Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Sep 20, 2019
1 parent 8fd3581 commit 66944d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 2 additions & 5 deletions synapse/handlers/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@

from twisted.internet import defer

from synapse.config.emailconfig import ThreepidBehaviour
from synapse.api.errors import (
CodeMessageException,
Codes,
HttpResponseException,
SynapseError,
)
from synapse.config.emailconfig import ThreepidBehaviour
from synapse.util.stringutils import random_string

from ._base import BaseHandler
Expand Down Expand Up @@ -436,10 +436,7 @@ def validate_threepid_session(self, client_secret, sid):
validation_session = None

# XXX: We should need to keep wrapping and unwrapping this value
threepid_creds = {
"client_secret": client_secret,
"sid": sid,
}
threepid_creds = {"client_secret": client_secret, "sid": sid}

# Try to validate as email
if self.hs.config.threepid_behaviour_email == ThreepidBehaviour.REMOTE:
Expand Down
7 changes: 1 addition & 6 deletions synapse/rest/client/v2_alpha/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@
from twisted.internet import defer

from synapse.api.constants import LoginType
from synapse.api.errors import (
Codes,
HttpResponseException,
SynapseError,
ThreepidValidationError,
)
from synapse.api.errors import Codes, SynapseError, ThreepidValidationError
from synapse.config.emailconfig import ThreepidBehaviour
from synapse.http.server import finish_request
from synapse.http.servlet import (
Expand Down

0 comments on commit 66944d7

Please sign in to comment.