Commits

Chris Beelby committed e13e543

Supplying a default of None to the dict.get() method is redundant

  • Participants
  • Parent commits 586bee7

Comments (0)

Files changed (1)

File cherrypy/_cpconfig.py

 
     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"]