mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
fix pep8
This commit is contained in:
parent
81d037dbd8
commit
0af58f14ee
@ -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 New Issue
Block a user