Skip to content

Commit 6df90d5

Browse files
committed
Drop section sign § from copyrights #3567
Reference: #3667 Reported-by: Stefan @stefan6419846 Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent c8409f6 commit 6df90d5

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/cluecode/copyrights.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4128,8 +4128,10 @@ def prepare_text_line(line, dedeb=True, to_ascii=True):
41284128

41294129
# normalize (possibly repeated) quotes to unique single quote '
41304130
# backticks ` and "
4131-
.replace('`', u"'")
4132-
.replace('"', u"'")
4131+
.replace('`', "'")
4132+
.replace('"', "'")
4133+
# see https://github.com/nexB/scancode-toolkit/issues/3667
4134+
.replace('§', " ")
41334135
)
41344136

41354137
if TRACE_TOK:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright (C) 2016§ The Android Open Source Project
4+
-->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
what:
2+
- copyrights
3+
copyrights:
4+
- Copyright (c) 2016 The Android Open Source Project

0 commit comments

Comments
 (0)