# HG changeset patch # User Matt Harbison # Date 2019-12-27 23:54:57 # Node ID 873d0fecb9a3aaa254ffc4b5f33f589c95c7a32f # Parent e52a9c85a7a8450f40bebb4c13b3c757ecec586e hgweb: delete a local variable instead of setting to `None` The previous code was flagged by PyCharm as an unused variable assignment. Differential Revision: https://phab.mercurial-scm.org/D7761 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 @@ def launch(application): # 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!")