We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f11d0 commit 2d83e52Copy full SHA for 2d83e52
setuptools/_vendor/backports/tarfile/__init__.py
@@ -48,8 +48,6 @@
48
import re
49
import warnings
50
51
-from .compat.py38 import removesuffix
52
-
53
try:
54
import pwd
55
except ImportError:
@@ -1367,7 +1365,7 @@ def _proc_gnulong(self, tarfile):
1367
1365
# Remove redundant slashes from directories. This is to be consistent
1368
1366
# with frombuf().
1369
if next.isdir():
1370
- next.name = removesuffix(next.name, "/")
+ next.name = next.name.removesuffix("/")
1371
1372
return next
1373
0 commit comments