Skip to content

Commit

Permalink
Merge pull request pallets#1715 from ThiefMaster/patch-1
Browse files Browse the repository at this point in the history
Add missing return to g.setdefault
  • Loading branch information
davidism committed Feb 2, 2016
2 parents e7367c9 + a4df0fb commit 22270d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def pop(self, name, default=_sentinel):
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__
Expand Down

0 comments on commit 22270d0

Please sign in to comment.