Avoid using a Python keyword as a renderer name

This commit is contained in:
Sajith Sasidharan 2020-06-02 16:52:09 -04:00
parent 3901559e34
commit c15001269f
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ class LiteralCheckResultsElement(Element):
super(LiteralCheckResultsElement, self).__init__()
@renderer
def return(self, req, tag):
def return_to(self, req, tag):
return_to = get_arg(req, "return_to", None)
if return_to:
return tags.div(tags.a("Return to file.", href=return_to))

View File

@ -11,7 +11,7 @@
<div>Literal files are always healthy: their data is contained in the URI</div>
<div t:render="return" />
<div t:render="return_to" />
</body>
</html>