File: __init__.py

package info (click to toggle)
python-friendly 0.7.21%2Bgit20230418.fe5d3a2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: python: 2,291; makefile: 6
file content (9 lines) | stat: -rw-r--r-- 236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from friendly_traceback import add_ignored_warnings


def _do_not_show_warning(warning_instance, warning_type, filename, lineno) -> bool:
    return filename == "<>"


add_ignored_warnings(_do_not_show_warning)
del add_ignored_warnings