Patchwork D7754: hgweb: delete local variable instead of setting it to `None`

login
register
mail settings
Submitter phabricator
Date Dec. 30, 2019, 1:32 p.m.
Message ID <3294094091fd4e710ea2e4d31dd0427e@localhost.localdomain>
Download mbox | patch
Permalink /patch/44124/
State Not Applicable
Headers show

Comments

phabricator - Dec. 30, 2019, 1:32 p.m.
Closed by commit rHG71582c5ad00f: hgweb: delete local variable instead of setting it to `None` (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7754?vs=18985&id=19014

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7754/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7754

AFFECTED FILES
  mercurial/hgweb/hgwebdir_mod.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py
+++ b/mercurial/hgweb/hgwebdir_mod.py
@@ -486,7 +486,7 @@ 
             )
             return res.sendresponse()
         finally:
-            tmpl = None
+            del tmpl
 
     def makeindex(self, req, res, tmpl, subdir=b""):
         self.refresh()