summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pyramid/scripts/prequest.py2
-rw-r--r--src/pyramid/scripts/proutes.py2
-rw-r--r--src/pyramid/scripts/pserve.py2
-rw-r--r--src/pyramid/scripts/pshell.py2
-rw-r--r--src/pyramid/scripts/ptweens.py2
-rw-r--r--src/pyramid/scripts/pviews.py2
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 @@ class PRequestCommand:
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 @@ class PRoutesCommand:
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 @@ class PServeCommand:
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 @@ class PShellCommand:
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 @@ class PTweensCommand:
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 @@ class PViewsCommand:
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