From 3851999c01da2983b794ab2eef38141a1f57350b Mon Sep 17 00:00:00 2001 From: adroullier Date: Tue, 24 Oct 2023 14:01:24 +0200 Subject: [PATCH] Fix 'tox -e lint' tests --- src/pyramid/scripts/prequest.py | 2 +- src/pyramid/scripts/proutes.py | 2 +- src/pyramid/scripts/pserve.py | 2 +- src/pyramid/scripts/pshell.py | 2 +- src/pyramid/scripts/ptweens.py | 2 +- src/pyramid/scripts/pviews.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pyramid/scripts/prequest.py b/src/pyramid/scripts/prequest.py index b7f148430..3db268896 100644 --- a/src/pyramid/scripts/prequest.py +++ b/src/pyramid/scripts/prequest.py @@ -138,7 +138,7 @@ def run(self): config_uri = self.args.config_uri config_vars = parse_vars(self.args.config_vars) # bw update 2.1 don't overwrite if set - if not '__script__' in config_vars: + if '__script__' not in config_vars: config_vars['__script__'] = self.script_name path = self.args.path_info diff --git a/src/pyramid/scripts/proutes.py b/src/pyramid/scripts/proutes.py index ec3075be6..fdafc6880 100644 --- a/src/pyramid/scripts/proutes.py +++ b/src/pyramid/scripts/proutes.py @@ -318,7 +318,7 @@ def run(self, quiet=False): config_uri = self.args.config_uri config_vars = parse_vars(self.args.config_vars) # bw update 2.1 don't overwrite if set - if not '__script__' in config_vars: + if '__script__' not in config_vars: config_vars['__script__'] = self.script_name loader = self.get_config_loader(config_uri) loader.setup_logging(config_vars) diff --git a/src/pyramid/scripts/pserve.py b/src/pyramid/scripts/pserve.py index 48048f893..55878c3fa 100644 --- a/src/pyramid/scripts/pserve.py +++ b/src/pyramid/scripts/pserve.py @@ -185,7 +185,7 @@ def run(self): # pragma: no cover config_uri = self.args.config_uri config_vars = parse_vars(self.args.config_vars) # bw update 2.1 don't overwrite if set - if not '__script__' in config_vars: + if '__script__' not in config_vars: config_vars['__script__'] = self.script_name app_spec = self.args.config_uri app_name = self.args.app_name diff --git a/src/pyramid/scripts/pshell.py b/src/pyramid/scripts/pshell.py index c5e5c2fb2..ba51745f3 100644 --- a/src/pyramid/scripts/pshell.py +++ b/src/pyramid/scripts/pshell.py @@ -132,7 +132,7 @@ def run(self, shell=None): config_uri = self.args.config_uri config_vars = parse_vars(self.args.config_vars) # bw update 2.1 don't overwrite if set - if not '__script__' in config_vars: + if '__script__' not in config_vars: config_vars['__script__'] = self.script_name loader = self.get_config_loader(config_uri) loader.setup_logging(config_vars) diff --git a/src/pyramid/scripts/ptweens.py b/src/pyramid/scripts/ptweens.py index ca8469169..1722d9261 100644 --- a/src/pyramid/scripts/ptweens.py +++ b/src/pyramid/scripts/ptweens.py @@ -83,7 +83,7 @@ def run(self): config_uri = self.args.config_uri config_vars = parse_vars(self.args.config_vars) # bw update 2.1 don't overwrite if set - if not '__script__' in config_vars: + if '__script__' not in config_vars: config_vars['__script__'] = self.script_name self.setup_logging(config_uri, global_conf=config_vars) env = self.bootstrap(config_uri, options=config_vars) diff --git a/src/pyramid/scripts/pviews.py b/src/pyramid/scripts/pviews.py index da9881434..94c843821 100644 --- a/src/pyramid/scripts/pviews.py +++ b/src/pyramid/scripts/pviews.py @@ -250,7 +250,7 @@ def run(self): config_uri = self.args.config_uri config_vars = parse_vars(self.args.config_vars) # bw update 2.1 don't overwrite if set - if not '__script__' in config_vars: + if '__script__' not in config_vars: config_vars['__script__'] = self.script_name url = self.args.url