Source code for plate_model_manager.misc_utils
import warnings
import logging
pmm_logger = logging.getLogger("pmm")
[docs]def my_warningformat(message, category, filename, lineno, line=None):
return f"{filename}:{lineno}: {category.__name__}: {message}\n"
warnings.formatwarning = my_warningformat