Skip to content

Commit 240ed7d

Browse files
committed
Minimal effort for Python 2
Don't fix what's not reported.
1 parent fbea9f8 commit 240ed7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pip/_internal/utils/temp_dir.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ def cleanup(self):
203203
# natively for paths, and the bytes-text conversion omission avoids
204204
# errors caused by the environment configuring encodings incorrectly.
205205
if WINDOWS:
206-
encoding = sys.getfilesystemencoding()
207-
rmtree(ensure_text(self._path, encoding=encoding))
206+
rmtree(ensure_text(self._path))
208207
else:
209208
rmtree(self._path)
210209

0 commit comments

Comments
 (0)