Browse Source

Add missing return to g.setdefault

pull/1715/head
Adrian 9 years ago
parent
commit
a4df0fbb39
  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