def fix(self):
from pep8radius.diff import print_diff, udiff_lines_fixed<EOL>n = len(self.filenames_diff)<EOL>_maybe_print('<STR_LIT>' % n)<EOL>any_changes = False<EOL>total_lines_changed = <NUM_LIT:0><EOL>pep8_diffs = []<EOL>for i, file_name in enumerate(self.filenames_diff, start=<NUM_LIT:1>):<EOL><INDENT>_maybe_print('<STR_LIT>' % (i, n, file_name), end='<STR_LIT>')<EOL>_maybe_print('<STR_LIT>', min_=<NUM_LIT:2>)<EOL>p_diff = self.fix_file(file_name)<EOL>lines_changed = udiff_lines_fixed(p_diff) if p_diff else <NUM_LIT:0><EOL>total_lines_changed += lines_changed<EOL>if p_diff:<EOL><INDENT>any_changes = True<EOL>if self.diff:<EOL><INDENT>pep8_diffs.append(p_diff)<EOL><DEDENT><DEDENT><DEDENT>if self.in_place:<EOL><INDENT>_maybe_print('<STR_LIT>'<EOL>% (total_lines_changed, n),<EOL>verbose=self.verbose)<EOL><DEDENT>else:<EOL><INDENT>_maybe_print('<STR_LIT>'<EOL>% (total_lines_changed, n),<EOL>verbose=self.verbose)<EOL><DEDENT>if self.diff:<EOL><INDENT>for diff in pep8_diffs:<EOL><INDENT>print_diff(diff, color=self.color)<EOL><DEDENT><DEDENT>return any_changes<EOL>
Runs fix_file on each modified file.

        - Prints progress and diff depending on options.
        - Returns True if there were any changes