Skip to content

Commit 5c363e8

Browse files
committed
Change name of deprecated WSGI settings list
1 parent 965796b commit 5c363e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

newrelic/api/web_transaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _parse_time_stamp(time_stamp):
7171
TRUE_VALUES = {"on", "true", "1"}
7272
FALSE_VALUES = {"off", "false", "0"}
7373

74-
DEPRECATED_ENVIRON_DICT = (
74+
DEPRECATED_ENVIRON_SETTINGS = (
7575
"newrelic.set_background_task",
7676
"newrelic.suppress_apdex_metric",
7777
"newrelic.suppress_transaction_trace",
@@ -85,7 +85,7 @@ def _lookup_environ_setting(environ, name, default=False):
8585
return default
8686

8787
# Check for deprecated WSGI environ dictionary setting
88-
if name in DEPRECATED_ENVIRON_DICT:
88+
if name in DEPRECATED_ENVIRON_SETTINGS:
8989
warnings.warn(
9090
f"Environ setting '{name}' is deprecated and will be removed in a future release.",
9191
DeprecationWarning,

0 commit comments

Comments
 (0)