Browse Source

Merge pull request #1715 from ThiefMaster/patch-1

Add missing return to g.setdefault
pull/1716/head
David Lord 9 years ago
parent
commit
22270d0f7d
  1. 2
      flask/ctx.py

2
flask/ctx.py

@ -36,7 +36,7 @@ class _AppCtxGlobals(object):
return self.__dict__.pop(name, default)
def setdefault(self, name, default=None):
self.__dict__.setdefault(name, default)
return self.__dict__.setdefault(name, default)
def __contains__(self, item):
return item in self.__dict__

Loading…
Cancel
Save