configfile: Fix deprecate() method
Some checks failed
Build test / build (push) Has been cancelled

Commit 1473b79a moved the deprecate mesage generation to the
PrinterConfig() class, but failed to use the proper variable name for
'section'.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2026-03-03 14:42:17 -05:00
parent 7a44726492
commit f1fb57564f

View file

@ -504,11 +504,11 @@ class PrinterConfig:
if value is None:
res = {'type': 'deprecated_option'}
defmsg = ("Option '%s' in section '%s' is deprecated."
% (option, self.section))
% (option, section))
else:
res = {'type': 'deprecated_value', 'value': value}
defmsg = ("Value '%s' in option '%s' in section '%s' is deprecated."
% (value, option, self.section))
% (value, option, section))
if msg is None:
msg = defmsg
res['message'] = msg