hgweb: delete local variable instead of setting it to `None`
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 18:19:40 -0500
changeset 43986 71582c5ad00f
parent 43985 cd96eccd1ce1
child 43987 ce37b35d4843
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
mercurial/hgweb/hgwebdir_mod.py
--- 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()