commit:     7445a15662512bf034a7e3f8144c9d07d1e9d8c6
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 13:51:29 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 13:51:29 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=7445a156

lint: unwrap multiple statements

It's hard to read code that packs multiple statements in one line, so
unwrap the few places in the codebase where we do that.

 catalyst/config.py      | 3 ++-
 targets/stage1/build.py | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/catalyst/config.py b/catalyst/config.py
index 48d9c12..ffad9b3 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -53,7 +53,8 @@ class ParserBase(object):
                        myline = trailing_comment.sub("", myline)
 
                        # Skip any blank lines
-                       if not myline: continue
+                       if not myline:
+                               continue
 
                        if self.key_value_separator in myline:
                                # Split on the first occurence of the separator 
creating two strings in the array mobjs

diff --git a/targets/stage1/build.py b/targets/stage1/build.py
index 6495ee3..be1bc4d 100755
--- a/targets/stage1/build.py
+++ b/targets/stage1/build.py
@@ -33,6 +33,8 @@ for idx in range(0, len(pkgs)):
                buildpkgs[bidx] = pkgs[idx]
                if buildpkgs[bidx][0:1] == "*":
                        buildpkgs[bidx] = buildpkgs[bidx][1:]
-       except: pass
+       except:
+               pass
 
-for b in buildpkgs: sys.stdout.write(b+" ")
+for b in buildpkgs:
+       sys.stdout.write(b + " ")

Reply via email to