From: dmontagu <35119617+dmontagu@users.noreply.github.com> Date: Tue, 18 Jun 2019 11:52:34 +0000 (-0700) Subject: :fire: Remove unused regex in routing.py (#314) X-Git-Tag: 0.30.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87b7a63ff2ca86b7f57af9376cd52c12672b6e08;p=thirdparty%2Ffastapi%2Ffastapi.git :fire: Remove unused regex in routing.py (#314) --- diff --git a/fastapi/routing.py b/fastapi/routing.py index 526cc485df..ea2b5fb244 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -180,8 +180,6 @@ class APIWebSocketRoute(routing.WebSocketRoute): 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)