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

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

Comments

phabricator - Dec. 30, 2019, 1:33 p.m.
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




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

Patch

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!")