Show More
@@ -1620,10 +1620,12 b' class ui(object):' | |||||
1620 | else: |
|
1620 | else: | |
1621 | curframe = inspect.currentframe() |
|
1621 | curframe = inspect.currentframe() | |
1622 | calframe = inspect.getouterframes(curframe, 2) |
|
1622 | calframe = inspect.getouterframes(curframe, 2) | |
1623 | self.write_err('%s at: %s:%s (%s)\n' |
|
1623 | fname, lineno, fmsg = calframe[stacklevel][1:4] | |
1624 | % ((msg,) + calframe[stacklevel][1:4])) |
|
1624 | fname, fmsg = pycompat.sysbytes(fname), pycompat.sysbytes(fmsg) | |
1625 |
self. |
|
1625 | self.write_err('%s at: %s:%d (%s)\n' | |
1626 | msg, *calframe[stacklevel][1:4]) |
|
1626 | % (msg, fname, lineno, fmsg)) | |
|
1627 | self.log('develwarn', '%s at: %s:%d (%s)\n', | |||
|
1628 | msg, fname, lineno, fmsg) | |||
1627 | curframe = calframe = None # avoid cycles |
|
1629 | curframe = calframe = None # avoid cycles | |
1628 |
|
1630 | |||
1629 | def deprecwarn(self, msg, version, stacklevel=2): |
|
1631 | def deprecwarn(self, msg, version, stacklevel=2): |
General Comments 0
You need to be logged in to leave comments.
Login now