changeset 43986:71582c5ad00f

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
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 27 Dec 2019 18:19:40 -0500
parents cd96eccd1ce1
children ce37b35d4843
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()