/usr/lib/python2.7/dist-packages/reconfigure/items/util.py is in python-reconfigure 0.1.74+git49a20890-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 | yn_getter = lambda x: x == 'yes'
yn_setter = lambda x: 'yes' if x else 'no'
tf_getter = lambda x: x == 'true'
tf_setter = lambda x: 'true' if x else 'false'
onezero_getter = lambda x: x == '1'
onezero_setter = lambda x: '1' if x else '0'
|