Skip to content

Commit e9095d6

Browse files
authored
Merge pull request #273 from brvoisin/fix/optimize-response-forms
fix: resolve perf issue with a lot of forms
2 parents d9eb041 + b6e5375 commit e9095d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webtest/response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from functools import cached_property
12
import re
23

34
from webtest import forms
@@ -385,7 +386,7 @@ def __repr__(self):
385386
location = ''
386387
return ('<' + self.status + ct + location + body + '>')
387388

388-
@property
389+
@cached_property
389390
def html(self):
390391
"""
391392
Returns the response as a `BeautifulSoup

0 commit comments

Comments
 (0)