summaryrefslogtreecommitdiffstats
path: root/lcheck.py
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-05-19 11:10:34 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-05-19 11:10:34 +0200
commit69097c59920733ecc2836f49be888443474d127c (patch)
treea9c0ca9bfd431a327cf18086e4af066281d2ae0a /lcheck.py
parent01d9d4d751e6281c48915c1b45b5b237d2d4e843 (diff)
downloadspdx-utils-master.tar.gz
lcheck: Better normalization and add missing LF for comment patchingHEADmaster
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lcheck.py')
-rwxr-xr-xlcheck.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lcheck.py b/lcheck.py
index 402198f..99da4fb 100755
--- a/lcheck.py
+++ b/lcheck.py
@@ -62,6 +62,13 @@ def normalize(txt):
l = l.replace(';', ' ').strip()
l = l.replace(':', ' ').strip()
l = l.replace('/', ' ').strip()
+ l = l.replace('(', ' ').strip()
+ l = l.replace(')', ' ').strip()
+ l = l.replace('-', ' ').strip()
+ l = l.replace('"', ' ').strip()
+ l = l.replace('|', ' ').strip()
+ l = l.replace('\'', ' ').strip()
+ l = l.replace('`', ' ').strip()
while l.find(' ') >= 0:
l = l.replace(' ', ' ')
@@ -820,7 +827,7 @@ class scanentry(object):
if ls.endswith('*/'):
continue
j += 1
- self.patch.append('/*n')
+ self.patch.append('/*\n')
start_bp_comment = j
continue
# HACK