diff options
author | Chris Beelby <cmbeelby@gmail.com> | 2012-11-23 15:09:43 -0500 |
---|---|---|
committer | Chris Beelby <cmbeelby@gmail.com> | 2012-11-23 15:09:43 -0500 |
commit | d8810f2908b89b876a9293bacd2bdfd7105b4870 (patch) | |
tree | aaf68cd19b15985b22b9821e28db6cd4c1b196a2 | |
parent | 25b90db4c57b1a701695d1148241200a48a5d16e (diff) | |
download | cherrypy-d8810f2908b89b876a9293bacd2bdfd7105b4870.tar.gz |
Supplying a default of None to the dict.get() method is redundant
-rw-r--r-- | cherrypy/_cpconfig.py | 2 |
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"] |