# fixhunt regression fixture: ruff G010, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: stdout "Second consumption: [None, None]", stderr "/w/prog.py:3: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead", exit 0 # after the fix: stdout "Second consumption: [None, None]", stderr "Processing 0", exit 0 # finding 2026-10-17T20-24-12-113Z-iye4-ruff-G010/r2-p004; rule fired 1 time(s) before the fix import logging logger = logging.getLogger() gen = (logger.warn(f'Processing {x}') for x in range(2)) print('Second consumption:', list(gen))