From a730578fcb695e23fb171b44ad20979be6bad51e Mon Sep 17 00:00:00 2001 From: mavhungutrezzy Date: Mon, 3 Oct 2022 09:56:17 +0200 Subject: [PATCH] refactor - simplify comparison --- src/flask/blueprints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask/blueprints.py b/src/flask/blueprints.py index 104f8acf..833365c3 100644 --- a/src/flask/blueprints.py +++ b/src/flask/blueprints.py @@ -387,7 +387,7 @@ class Blueprint(Scaffold): f" provide a unique name." ) - first_bp_registration = not any(bp is self for bp in app.blueprints.values()) + first_bp_registration = all(bp is not self for bp in app.blueprints.values()) first_name_registration = name not in app.blueprints app.blueprints[name] = self