# HG changeset patch # User Matt Harbison # Date 1577490897 18000 # 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 -r e52a9c85a7a8 -r 873d0fecb9a3 mercurial/hgweb/wsgicgi.py --- a/mercurial/hgweb/wsgicgi.py Fri Dec 27 18:52:15 2019 -0500 +++ b/mercurial/hgweb/wsgicgi.py Fri Dec 27 18:54:57 2019 -0500 @@ -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!")