depending on the edit, you could maybe do it in __init__ and make something like:
if self.get_dist() <= 12.10: maintainable_patch = function without your line changes
else: maintainable_patch = function with your line changes
def something():
...
maintainable_patch()
...