Skip to content

Commit

Permalink
Make black formatter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
groodt committed Jul 10, 2023
1 parent 25f4e6e commit 9b47bc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pip/_internal/utils/misc.py
Expand Up @@ -133,7 +133,9 @@ def rmtree(dir: str, ignore_errors: bool = False) -> None:
shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)


def rmtree_errorhandler(func: Callable[..., Any], path: str, exc_info: Union[ExcInfo, BaseException]) -> None:
def rmtree_errorhandler(
func: Callable[..., Any], path: str, exc_info: Union[ExcInfo, BaseException]
) -> None:
"""On Windows, the files in .svn are read-only, so when rmtree() tries to
remove them, an exception is thrown. We catch that here, remove the
read-only attribute, and hopefully continue without problems."""
Expand Down

0 comments on commit 9b47bc0

Please sign in to comment.