diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-19 16:10:31 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-19 16:10:31 +0200 |
commit | 9c1ec981c51aad2a48d4f8b05fa10ee92689268e (patch) | |
tree | 8a3848285cd9b66cf6e69d30686e06beabd194cb | |
parent | bd1d5d27c5bd76c4b159679eb383677ca828fdae (diff) | |
download | ick-9c1ec981c51aad2a48d4f8b05fa10ee92689268e.tar.gz |
Fix whitespace problems pep8 found
-rw-r--r-- | icklib/logger.py | 2 | ||||
-rw-r--r-- | icklib/os_release_tests.py | 1 | ||||
-rw-r--r-- | icklib/project.py | 12 | ||||
-rw-r--r-- | icklib/target_tests.py | 4 |
4 files changed, 10 insertions, 9 deletions
diff --git a/icklib/logger.py b/icklib/logger.py index f71371c..6e5e892 100644 --- a/icklib/logger.py +++ b/icklib/logger.py @@ -27,7 +27,7 @@ class Logger(object): self._outputs.append((output, quiet)) def drop_output_file(self, output): - self._outputs = [(o,q) for o, q in self._outputs if o != output] + self._outputs = [(o, q) for o, q in self._outputs if o != output] def set_indentation(self, indentation): self._indentation = indentation diff --git a/icklib/os_release_tests.py b/icklib/os_release_tests.py index b443264..08738ca 100644 --- a/icklib/os_release_tests.py +++ b/icklib/os_release_tests.py @@ -42,6 +42,7 @@ SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" ''' + class OsReleaseTests(unittest.TestCase): def test_raises_error_if_nothing_can_be_parsed(self): diff --git a/icklib/project.py b/icklib/project.py index 771bb8f..398884d 100644 --- a/icklib/project.py +++ b/icklib/project.py @@ -155,7 +155,7 @@ class Project(object): for name, value in self.env.items(): env_argv.append('%s=%s' % (name, value)) return env_argv - + def report_running_locally(self, displayed_cmd): progress = { 'target': 'local', @@ -553,7 +553,7 @@ class CollectDebianInfoAboutTargets(icklib.BuildStep): # We treat 'sid' specially. if codename == 'sid': codename = 'unstable' - + target.debian_codename = codename if codename == 'unstable': @@ -887,7 +887,7 @@ class FindDebianChangesFiles(icklib.BuildStep): class SetupAPTRepository(icklib.BuildStep): - + def build(self): if not self.run_state.changes_files: return @@ -902,7 +902,7 @@ class SetupAPTRepository(icklib.BuildStep): self._refresh_file( os.path.join(confpath, 'distributions'), self._make_reprepro_distributions(self.targets)) - + self._refresh_file( os.path.join(confpath, 'incoming'), self._make_reprepro_incoming(self.targets)) @@ -911,7 +911,7 @@ class SetupAPTRepository(icklib.BuildStep): path = os.path.join(repopath, base) if not os.path.exists(path): os.makedirs(path) - + def _make_reprepro_distributions(self, targets): archs = set(t.debian_arch for t in targets) codenames = set(t.debian_codename for t in targets) @@ -980,7 +980,7 @@ class SetupAPTRepository(icklib.BuildStep): class UploadDebianPackages(icklib.BuildStep): - + def build(self): if not self.run_state.changes_files: return diff --git a/icklib/target_tests.py b/icklib/target_tests.py index 6cfb3b1..4bdeba7 100644 --- a/icklib/target_tests.py +++ b/icklib/target_tests.py @@ -37,7 +37,7 @@ class TargetTests(unittest.TestCase): def test_sets_name(self): t = icklib.Target('foo') self.assertEqual(t.name, 'foo') - + def test_syncs_to_target(self): if self.run_ssh: src = os.path.join(self.tempdir, 'src') @@ -51,7 +51,7 @@ class TargetTests(unittest.TestCase): pathname = os.path.join(self.tempdir, 'dst', 'source.py') self.assertTrue(os.path.exists(pathname)) - + def test_syncs_from_target(self): if self.run_ssh: src = os.path.join(self.tempdir, 'src') |