Skip to content
Myr

tiny performance improvement

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 5e1b103 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/wrappers.py+2 added-2 removed
52 unmodified lines
5354 @property55 def module(self):56 """The name of the current module"""57 if self.endpoint and '.' in self.endpoint:58 return self.endpoint.rsplit('.', 1)[0]57 if self.url_rule and '.' in self.url_rule.endpoint:58 return self.url_rule.endpoint.rsplit('.', 1)[0]5960 @cached_property61 def json(self):62 """If the mimetype is `application/json` this will contain the
18 unmodified lines