summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-12-17 00:31:58 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-12-17 00:34:37 -0500
commit5dda4e933411ab84924373518021f082823a43a4 (patch)
tree045fd66c457b21b0d8491fa64ba500758d92d4df
parent1bd7f0888a1e51682ac04f9d58571f6420d50ee9 (diff)
downloadcherrypy-git-5dda4e933411ab84924373518021f082823a43a4.tar.gz
Omit unused values
-rw-r--r--cherrypy/_cpchecker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/_cpchecker.py b/cherrypy/_cpchecker.py
index 06a1a993..aa35ec6f 100644
--- a/cherrypy/_cpchecker.py
+++ b/cherrypy/_cpchecker.py
@@ -196,7 +196,7 @@ class Checker(object):
"""Process config and warn on each obsolete or deprecated entry."""
for section, conf in config.items():
if isinstance(conf, dict):
- for k, v in conf.items():
+ for k in conf:
if k in self.obsolete:
warnings.warn('%r is obsolete. Use %r instead.\n'
'section: [%s]' %
@@ -235,7 +235,7 @@ class Checker(object):
for section, conf in app.config.items():
is_path_section = section.startswith('/')
if is_path_section and isinstance(conf, dict):
- for k, v in conf.items():
+ for k in conf:
atoms = k.split('.')
if len(atoms) > 1:
if atoms[0] not in ns: