mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 11:00:20 +00:00
fix pep8
This commit is contained in:
parent
81d037dbd8
commit
0af58f14ee
1 changed files with 1 additions and 2 deletions
|
@ -68,8 +68,7 @@ def check_3pid_allowed(hs, medium, address):
|
||||||
for constraint in hs.config.registrations_require_3pid:
|
for constraint in hs.config.registrations_require_3pid:
|
||||||
logger.debug("Checking 3PID %s (%s) against %s (%s)" % (
|
logger.debug("Checking 3PID %s (%s) against %s (%s)" % (
|
||||||
address, medium, constraint['pattern'], constraint['medium']
|
address, medium, constraint['pattern'], constraint['medium']
|
||||||
)
|
))
|
||||||
)
|
|
||||||
if (
|
if (
|
||||||
medium == constraint['medium'] and
|
medium == constraint['medium'] and
|
||||||
re.match(constraint['pattern'], address)
|
re.match(constraint['pattern'], address)
|
||||||
|
|
Loading…
Reference in a new issue