equal
deleted
inserted
replaced
1601 |
1601 |
1602 Use 'stacklevel' to report the offender some layers further up in the |
1602 Use 'stacklevel' to report the offender some layers further up in the |
1603 stack. |
1603 stack. |
1604 """ |
1604 """ |
1605 if not self.configbool('devel', 'all-warnings'): |
1605 if not self.configbool('devel', 'all-warnings'): |
1606 if config is not None and not self.configbool('devel', config): |
1606 if config is None or not self.configbool('devel', config): |
1607 return |
1607 return |
1608 msg = 'devel-warn: ' + msg |
1608 msg = 'devel-warn: ' + msg |
1609 stacklevel += 1 # get in develwarn |
1609 stacklevel += 1 # get in develwarn |
1610 if self.tracebackflag: |
1610 if self.tracebackflag: |
1611 util.debugstacktrace(msg, stacklevel, self.ferr, self.fout) |
1611 util.debugstacktrace(msg, stacklevel, self.ferr, self.fout) |