hgweb: delete a local variable instead of setting to `None`
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 18:54:57 -0500
changeset 43993 873d0fecb9a3
parent 43992 e52a9c85a7a8
child 43994 de7838053207
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
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!")