summaryrefslogtreecommitdiff
path: root/tools/patman/patman.py
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2019-10-21 20:09:56 -0700
committerSimon Glass <sjg@chromium.org>2019-10-27 10:56:51 -0600
commit8ab452d5877638a97e5bdd521d119403b70b45f5 (patch)
tree22bc9fc5374676467651c018522f88e4cdc77ff5 /tools/patman/patman.py
parent31f9f0ea571c12e914eda400b242d4a0a4b39f43 (diff)
patman: separate emails in CC list with NULs
There is a contributor in Linux kernel with a comma in their name, which confuses patman and results in invalid to- or cc- addresses on some patches. To avoid this, let's use \0 as a separator when generating cc file. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/patman.py')
-rwxr-xr-xtools/patman/patman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/patman.py b/tools/patman/patman.py
index 9605a36eff2..0187ebe1d4b 100755
--- a/tools/patman/patman.py
+++ b/tools/patman/patman.py
@@ -112,7 +112,7 @@ elif options.cc_cmd:
for line in fd.readlines():
match = re_line.match(line)
if match and match.group(1) == args[0]:
- for cc in match.group(2).split(', '):
+ for cc in match.group(2).split('\0'):
cc = cc.strip()
if cc:
print(cc)