aboutcode-org / aboutcode-org/typecode

os.path.commonprefix() is deprecated

Offen
#51 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
10
Forks
15
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Running code from this package on Python 3.15 raises deprecation warning:

```
/opt/hostedtoolcache/Python/3.15.0-rc.2/x64/lib/python3.15/site-packages/typecode/_vendor/pygments/regexopt.py:58: DeprecationWarning: os.path.commonprefix() is deprecated. Use os.path.commonpath() for longest path prefix.
prefix = commonprefix(strings)
/opt/hostedtoolcache/Python/3.15.0-rc.2/x64/lib/python3.15/site-packages/typecode/_vendor/pygments/regexopt.py:68: DeprecationWarning: os.path.commonprefix() is deprecated. Use os.path.commonpath() for longest path prefix.
suffix = commonprefix(strings_rev)
```

Upstream fix: https://github.com/pygments/pygments/pull/3040

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.