Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6df90d5

Browse files
committed
Drop section sign SS from copyrights #3567
Reference: #3667 Reported-by: Stefan @stefan6419846 Signed-off-by: Philippe Ombredanne
1 parent c8409f6 commit 6df90d5

File tree

3 files changed

+12
-2
lines changed
  • src/cluecode
    • copyrights.py
  • tests/cluecode/data/copyrights/misco2
    • pom.xml.yml
    • pom.xml

3 files changed

+12
-2
lines changed

src/cluecode/copyrights.py

Lines changed: 4 additions & 2 deletions
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('SS', " ")
41334135
)
41344136

41354137
if TRACE_TOK:

tests/cluecode/data/copyrights/misco2/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
xml version="1.0" encoding="utf-8"?>
2+

tests/cluecode/data/copyrights/misco2/pom.xml.yml

Lines changed: 4 additions & 0 deletions
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)