1. Chris Beelby
  2. CherryPy


Chris Beelby  committed e13e543

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

  • Participants
  • Parent commits 586bee7
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/_cpconfig.py

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