Mercurial > hg-stable
changeset 43998:873d0fecb9a3
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 18:54:57 -0500 |
parents | e52a9c85a7a8 |
children | de7838053207 |
files | mercurial/hgweb/wsgicgi.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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!")