~ubuntu-core-dev/ubuntu/hirsute/apport/ubuntu

« back to all changes in this revision

Viewing changes to test/test_ui.py

  • Committer: Brian Murray
  • Date: 2020-06-24 16:15:42 UTC
  • Revision ID: brian@canonical.com-20200624161542-fh9hv8j2v6grndqq
Fix pep8 errors regarding ambiguous variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1770
1770
    def _run_hook(self, code):
1771
1771
        f = open(os.path.join(self.hookdir, 'coreutils.py'), 'w')
1772
1772
        f.write('def add_info(report, ui):\n%s\n' %
1773
 
                '\n'.join(['    ' + l for l in code.splitlines()]))
 
1773
                '\n'.join(['    ' + line for line in code.splitlines()]))
1774
1774
        f.close()
1775
1775
        self.ui.options.package = 'coreutils'
1776
1776
        self.ui.run_report_bug()