From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 00A1B13888F for ; Tue, 6 Oct 2015 15:05:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ED1D621C01D; Tue, 6 Oct 2015 15:05:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52EA321C010 for ; Tue, 6 Oct 2015 15:05:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5DD4F340AC1 for ; Tue, 6 Oct 2015 15:05:34 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 02/13] lint: unwrap multiple statements Date: Tue, 6 Oct 2015 11:05:18 -0400 Message-Id: <1444143929-26705-2-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1444143929-26705-1-git-send-email-vapier@gentoo.org> References: <1444143929-26705-1-git-send-email-vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: e40caaec-8b5d-4ec1-8a1a-bf37576c1dd7 X-Archives-Hash: c2470561e7fa25a3128369cceeeab9be 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 + " ") -- 2.5.2