Python 2.0 incorrectly recognized
- Dominant language
- Go
- Stars
- 513
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
The license file at https://github.com/nodeca/argparse/blob/a645a9a9d3d0a347f383d0b795859e67dfae6ad8/LICENSE isn't recognized as a Python 2.0 license.
When I run
```go
package main
import (
"fmt"
"os"
"github.com/google/licensecheck"
)
func main() {
content, _ := os.ReadFile("LICENSE")
cov := licensecheck.Scan(content)
fmt.Printf("%.1f%% of text covered by licenses:\n", cov.Percent)
for _, m := range cov.Match {
fmt.Printf("%s at [%d:%d] IsURL=%v\n", m.ID, m.Start, m.End, m.IsURL)
}
}
```
on the license file, the output is
```
7.9% of text covered by licenses:
HPND at [11702:12775] IsURL=false
```
It looks like the license file referenced is a longer version of the Python 2.0 license, which is throwing the checks off.
Contributor guide
Assessment
This issue has not been assessed yet.