# fixhunt regression fixture: ruff G010, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: no stdout, stderr "/w/prog.py:4: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead", exit 0 # after the fix: no stdout, stderr "error msg", exit 0 # finding 2026-10-17T20-24-12-113Z-iye4-ruff-G010/r1-p001; rule fired 1 time(s) before the fix import logging error_logger = logging.getLogger('error') try: error_logger.warn('error msg') # Should become .warning except Exception as e: print(f'Error: {type(e).__name__}: {e}')