From: Adam Sampson Date: Wed, 27 Jun 2018 14:38:58 +0100 Subject: [U-Boot] [PATCH 2/2] patman: Split alias entries on arbitrary whitespace In-Reply-To: <20180627133858.19135-1-ats@offog.org> References: <20180627133858.19135-1-ats@offog.org> Message-ID: <20180627133858.19135-2-ats@offog.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Previously the first three words in a git-mailrc alias entry could only be separated by spaces. git-send-email and Mutt both allow arbitrary whitespace here. Signed-off-by: Adam Sampson --- tools/patman/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 94ea5b5a1b..ca4334426b 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -263,7 +263,7 @@ def _ReadAliasFile(fname): line = line.strip() if not line or line.startswith('#'): continue - words = line.split(' ', 2) + words = line.split(None, 2) if len(words) < 3 or words[0] != 'alias': if not bad_line: bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum, -- 2.18.0