mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-11 04:56:41 +00:00
🔥 Remove unused regex in routing.py (#314)
This commit is contained in:
parent
06d0918c3d
commit
87b7a63ff2
1 changed files with 0 additions and 2 deletions
|
|
@ -180,8 +180,6 @@ class APIWebSocketRoute(routing.WebSocketRoute):
|
||||||
dependency_overrides_provider=dependency_overrides_provider,
|
dependency_overrides_provider=dependency_overrides_provider,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
regex = "^" + path + "$"
|
|
||||||
regex = re.sub("{([a-zA-Z_][a-zA-Z0-9_]*)}", r"(?P<\1>[^/]+)", regex)
|
|
||||||
self.path_regex, self.path_format, self.param_convertors = compile_path(path)
|
self.path_regex, self.path_format, self.param_convertors = compile_path(path)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue