]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:fire: Remove unused regex in routing.py (#314)
authordmontagu <35119617+dmontagu@users.noreply.github.com>
Tue, 18 Jun 2019 11:52:34 +0000 (04:52 -0700)
committerSebastián Ramírez <tiangolo@gmail.com>
Tue, 18 Jun 2019 11:52:34 +0000 (13:52 +0200)
fastapi/routing.py

index 526cc485df0bccf4b47c5d5a9d99540429910d51..ea2b5fb2441844e5771f8d76c32050a9ddc02daa 100644 (file)
@@ -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)