summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Beelby <cmbeelby@gmail.com>2012-11-23 15:09:43 -0500
committerChris Beelby <cmbeelby@gmail.com>2012-11-23 15:09:43 -0500
commitd8810f2908b89b876a9293bacd2bdfd7105b4870 (patch)
treeaaf68cd19b15985b22b9821e28db6cd4c1b196a2
parent25b90db4c57b1a701695d1148241200a48a5d16e (diff)
downloadcherrypy-d8810f2908b89b876a9293bacd2bdfd7105b4870.tar.gz
Supplying a default of None to the dict.get() method is redundant
-rw-r--r--cherrypy/_cpconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/_cpconfig.py b/cherrypy/_cpconfig.py
index e2b7dee0..0bde72b1 100644
--- a/cherrypy/_cpconfig.py
+++ b/cherrypy/_cpconfig.py
@@ -157,7 +157,7 @@ class Config(reprconf.Config):
def _apply(self, config):
"""Update self from a dict."""
- if isinstance(config.get("global", None), dict):
+ if isinstance(config.get("global"), dict):
if len(config) > 1:
cherrypy.checker.global_config_contained_paths = True
config = config["global"]