Skip to content

Commit

Permalink
Minimal effort for Python 2
Browse files Browse the repository at this point in the history
Don't fix what's not reported.
  • Loading branch information
uranusjr committed Oct 27, 2020
1 parent fbea9f8 commit 240ed7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pip/_internal/utils/temp_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ def cleanup(self):
# natively for paths, and the bytes-text conversion omission avoids
# errors caused by the environment configuring encodings incorrectly.
if WINDOWS:
encoding = sys.getfilesystemencoding()
rmtree(ensure_text(self._path, encoding=encoding))
rmtree(ensure_text(self._path))
else:
rmtree(self._path)

Expand Down

0 comments on commit 240ed7d

Please sign in to comment.