Skip to content
Myr

Add missing return to g.setdefault

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Adrian · committed by Adrian · parent e7367c9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/ctx.py+1 added-1 removed
34 unmodified lines
35 else:36 return self.__dict__.pop(name, default)3738 def setdefault(self, name, default=None):39 self.__dict__.setdefault(name, default)39 return self.__dict__.setdefault(name, default)4041 def __contains__(self, item):42 return item in self.__dict__43
363 unmodified lines