hgweb: delete local variable instead of setting it to `None`
The previous code was flagged by PyCharm as an unused variable assignment.
Differential Revision: https://phab.mercurial-scm.org/D7754
--- a/mercurial/hgweb/hgwebdir_mod.py Fri Dec 27 17:58:17 2019 -0500
+++ b/mercurial/hgweb/hgwebdir_mod.py Fri Dec 27 18:19:40 2019 -0500
@@ -486,7 +486,7 @@
)
return res.sendresponse()
finally:
- tmpl = None
+ del tmpl
def makeindex(self, req, res, tmpl, subdir=b""):
self.refresh()