Skip to content

Commit 2d83e52

Browse files
committed
Rolled back more inadvertently changed files
1 parent d1f11d0 commit 2d83e52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setuptools/_vendor/backports/tarfile/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
import re
4949
import warnings
5050

51-
from .compat.py38 import removesuffix
52-
5351
try:
5452
import pwd
5553
except ImportError:
@@ -1367,7 +1365,7 @@ def _proc_gnulong(self, tarfile):
13671365
# Remove redundant slashes from directories. This is to be consistent
13681366
# with frombuf().
13691367
if next.isdir():
1370-
next.name = removesuffix(next.name, "/")
1368+
next.name = next.name.removesuffix("/")
13711369

13721370
return next
13731371

0 commit comments

Comments
 (0)