0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-20 07:14:02 +01:00

Brackets are nicer

This commit is contained in:
David Baker 2015-01-28 14:26:03 +00:00
parent 4fbf2328c2
commit 6741c3dbd9

View file

@ -33,8 +33,8 @@ class PushRuleRestServlet(ClientV1RestServlet):
'override': 4 'override': 4
} }
PRIORITY_CLASS_INVERSE_MAP = {v: k for k,v in PRIORITY_CLASS_MAP.items()} PRIORITY_CLASS_INVERSE_MAP = {v: k for k,v in PRIORITY_CLASS_MAP.items()}
SLIGHTLY_PEDANTIC_TRAILING_SLASH_ERROR =\ SLIGHTLY_PEDANTIC_TRAILING_SLASH_ERROR = (
"Unrecognised request: You probably wanted a trailing slash" "Unrecognised request: You probably wanted a trailing slash")
def rule_spec_from_path(self, path): def rule_spec_from_path(self, path):
if len(path) < 2: if len(path) < 2: