1. cherrypy
  2. CherryPy

Commits

John P. Speno  committed 5a9e123

Fixing missing self in KeyTitlingDict.setdefault().

  • Participants
  • Parent commits 0fa815d
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/_cphttptools.py

View file
         return newdict
     fromkeys = classmethod(fromkeys)
     
-    def setdefault(key, x=None):
+    def setdefault(self, key, x=None):
         key = str(key).title()
         try:
             return self[key]