diff options
author | Ed Bartosh <eduard.bartosh@intel.com> | 2015-01-14 00:49:59 +0200 |
---|---|---|
committer | Ed Bartosh <eduard.bartosh@intel.com> | 2015-01-14 01:16:01 +0200 |
commit | 3721e22667f4be23fa87dacf99e51f7a1db48edd (patch) | |
tree | 0f81ed9632bae29fc9064fb5a5b79cfb264b498a | |
parent | 3fe1540f9b47a35c97b50a65ff0dc4d9fde2e68b (diff) | |
download | repa-3721e22667f4be23fa87dacf99e51f7a1db48edd.tar.gz repa-3721e22667f4be23fa87dacf99e51f7a1db48edd.tar.bz2 repa-3721e22667f4be23fa87dacf99e51f7a1db48edd.zip |
pylinting: Fix pylint error C0330
Fixed 'Wrong continued indentation' errors
Fixes: #2320
Change-Id: I71d4353079990e34093d74b33bbe9c38fda43c9b
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
-rw-r--r-- | examples/namespace/setup.py | 3 | ||||
-rw-r--r-- | examples/plugin/setup.py | 3 | ||||
-rw-r--r-- | repa/common.py | 3 | ||||
-rw-r--r-- | repa/diff.py | 6 | ||||
-rwxr-xr-x | repa/group.py | 4 | ||||
-rwxr-xr-x | repa/list.py | 14 | ||||
-rwxr-xr-x | repa/main.py | 5 | ||||
-rw-r--r-- | repa/obs.py | 10 | ||||
-rwxr-xr-x | setup.py | 3 |
9 files changed, 26 insertions, 25 deletions
diff --git a/examples/namespace/setup.py b/examples/namespace/setup.py index 5ce86e5..182a3dc 100644 --- a/examples/namespace/setup.py +++ b/examples/namespace/setup.py @@ -36,5 +36,4 @@ setup(name="repa_namespace_package", author='Ed Bartosh', author_email='eduard.bartosh@intel.com', packages=['repa'], - namespace_packages=['repa'] -) + namespace_packages=['repa']) diff --git a/examples/plugin/setup.py b/examples/plugin/setup.py index 11a1df4..36684fd 100644 --- a/examples/plugin/setup.py +++ b/examples/plugin/setup.py @@ -37,5 +37,4 @@ setup(name="repa_plugin", packages=['repa_plugin'], entry_points={ 'repa_commands': ['repa_plugin = repa_plugin.plugin:Test'] - } -) + }) diff --git a/repa/common.py b/repa/common.py index 90b5640..a523e9f 100644 --- a/repa/common.py +++ b/repa/common.py @@ -97,8 +97,7 @@ def accept_or_reject(obs, submission, state, target, comment=''): message += "Comments: %s \nGit project: %s\nTag: %s" \ % (comment or "submission %s" % str(name), - projects, - meta['git_tag']) + projects, meta['git_tag']) # Create SR reqid = obs.create_sr(project, obs.get_source_packages(project), diff --git a/repa/diff.py b/repa/diff.py index 613ec01..8202848 100644 --- a/repa/diff.py +++ b/repa/diff.py @@ -90,9 +90,9 @@ def diff(obs, cmp_project, target_project, cmp_manifest, except RepaException: pass - print "%-55s %-12s %-12s %-40s %s" % (path, rev_cmp[:10], - str(rev_target)[:10], - cmp_tag, status) + print "%-55s %-12s %-12s %-40s %s" % \ + (path, rev_cmp[:10], str(rev_target)[:10], cmp_tag, status) + class Diff(object): """Subcommand: diff projects.""" diff --git a/repa/group.py b/repa/group.py index 10d6a0a..c7c079e 100755 --- a/repa/group.py +++ b/repa/group.py @@ -107,7 +107,7 @@ def create_group_project(obs, submissions, meta, comment): gmeta = {'name': name, 'obs_target_prj': target_prj, 'submissions': submissions, 'comment': comment} project = '%s%s:%s-group' % (OBS_PROJECT_PREFIX, str(target_prj), - name.replace('/', ':')) + name.replace('/', ':')) saved = sys.stdout sys.stdout = StringIO() @@ -196,7 +196,7 @@ class Group(object): def add_arguments(parser, config): """Adds arguments to the parser. Called from [sub_]main.""" parser.add_argument('submission', nargs='+', - help='space separated list of submissions') + help='space separated list of submissions') parser.add_argument('--processes', type=int, help='amount of parallel processes to use', default=config.get('processes')) diff --git a/repa/list.py b/repa/list.py index 4a43e18..0d19d96 100755 --- a/repa/list.py +++ b/repa/list.py @@ -124,13 +124,15 @@ def list_submissions(obs, target, processes, base, is_colorize=False, if rsr: base_status = colorizer.red('rejected. SR %s' % rsr) - print '%-37s %-37s %-37s %s' % (meta['git_tag'], \ - get_status(meta, colorizer, build_results, ignore), - base_status, ','.join(projects)) + print '%-37s %-37s %-37s %s' % \ + (meta['git_tag'], + get_status(meta, colorizer, build_results, ignore), + base_status, ','.join(projects)) else: - print '%-37s %-37s %s' % (meta['git_tag'], \ - get_status(meta, colorizer, build_results, ignore), - ','.join(projects)) + print '%-37s %-37s %s' % \ + (meta['git_tag'], \ + get_status(meta, colorizer, build_results, ignore), + ','.join(projects)) if showurls: show_urls(meta) diff --git a/repa/main.py b/repa/main.py index 3f62252..44680cc 100755 --- a/repa/main.py +++ b/repa/main.py @@ -53,8 +53,9 @@ def parse_args(argv): config = read_config(section=parsed.section) # recreate parser to parse rest of the command line - parser = ArgumentParser(prog='repa', - description='Release Engineering Process Assistant') + parser = \ + ArgumentParser(prog='repa', + description='Release Engineering Process Assistant') parser.add_argument('--version', action='version', version='%(prog)s version 0.3') parser.add_argument('-s', '--section', default='general', diff --git a/repa/obs.py b/repa/obs.py index 6cfd810..e674797 100644 --- a/repa/obs.py +++ b/repa/obs.py @@ -113,11 +113,13 @@ class OBS(OSC): for project in projects: if processes > 1: - yield (project, processes[project][0].get(), - processes[project][1].get()) + yield (project, + processes[project][0].get(), + processes[project][1].get()) else: - yield (project, self.get_descr(project), - self.get_build_results(project)) + yield (project, + self.get_descr(project), + self.get_build_results(project)) @retry((OSCError, HTTPError)) @@ -49,5 +49,4 @@ setup(name="repa", 'rmgroup = repa.rmgroup:RmGroup', 'info = repa.info:Info', 'diff = repa.diff:Diff'] - } -) + }) |