D7761: hgweb: delete a local variable instead of setting to `None`

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


Closed by commit rHG873d0fecb9a3: hgweb: delete a local variable instead of setting 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/D7761?vs=18992&id=19021

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

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

AFFECTED FILES
  mercurial/hgweb/wsgicgi.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/wsgicgi.py b/mercurial/hgweb/wsgicgi.py
--- a/mercurial/hgweb/wsgicgi.py
+++ b/mercurial/hgweb/wsgicgi.py
@@ -77,7 +77,7 @@
                     # Re-raise original exception if headers sent
                     raise exc_info[0](exc_info[1], exc_info[2])
             finally:
-                exc_info = None  # avoid dangling circular ref
+                del exc_info  # avoid dangling circular ref
         elif headers_set:
             raise AssertionError(b"Headers already set!")
 



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


More information about the Mercurial-devel mailing list