Skip to content

Commit

Permalink
Partially revert an unsafe autofix
Browse files Browse the repository at this point in the history
Co-authored-by: Avasam <[email protected]>
  • Loading branch information
DimitriPapadopoulos and Avasam authored Jan 3, 2025
1 parent b315193 commit a9d454d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/command/egg_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def global_exclude(self, pattern):
return self._remove_files(match.match)

def append(self, item) -> None:
item = item.removesuffix('\r')
item = item.removesuffix('\r') # Fix older sdists built on Windows
path = convert_path(item)

if self._safe_path(path):
Expand Down

0 comments on commit a9d454d

Please sign in to comment.