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

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Mon Dec 30 08:32:12 EST 2019


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

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()



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


More information about the Mercurial-devel mailing list