Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 43991:e3ce3731d621
ui: delete local variables instead of setting to `None`
The previous code was flagged by PyCharm as an unused variable assignment.
Differential Revision: https://phab.mercurial-scm.org/D7759
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 18:51:45 -0500 |
parents | c41ed5d4f770 |
children | 6d3b67a837a6 |
comparison
equal
deleted
inserted
replaced
43990:37458d8b0c1e | 43991:e3ce3731d621 |
---|---|
2030 fname, fmsg = pycompat.sysbytes(fname), pycompat.sysbytes(fmsg) | 2030 fname, fmsg = pycompat.sysbytes(fname), pycompat.sysbytes(fmsg) |
2031 self.write_err(b'%s at: %s:%d (%s)\n' % (msg, fname, lineno, fmsg)) | 2031 self.write_err(b'%s at: %s:%d (%s)\n' % (msg, fname, lineno, fmsg)) |
2032 self.log( | 2032 self.log( |
2033 b'develwarn', b'%s at: %s:%d (%s)\n', msg, fname, lineno, fmsg | 2033 b'develwarn', b'%s at: %s:%d (%s)\n', msg, fname, lineno, fmsg |
2034 ) | 2034 ) |
2035 curframe = calframe = None # avoid cycles | 2035 |
2036 # avoid cycles | |
2037 del curframe | |
2038 del calframe | |
2036 | 2039 |
2037 def deprecwarn(self, msg, version, stacklevel=2): | 2040 def deprecwarn(self, msg, version, stacklevel=2): |
2038 """issue a deprecation warning | 2041 """issue a deprecation warning |
2039 | 2042 |
2040 - msg: message explaining what is deprecated and how to upgrade, | 2043 - msg: message explaining what is deprecated and how to upgrade, |