Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Lib/pathlib/_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import operator
import os
import posixpath
import shutil
import sys
from glob import _StringGlobber
from itertools import chain
Expand Down Expand Up @@ -824,7 +823,10 @@ def rmdir(self):
"""
os.rmdir(self)

_rmtree = shutil.rmtree
def _rmtree(self):
# Lazy import to improve module import time
import shutil
Comment thread
danielhollas marked this conversation as resolved.
Resolved
shutil.rmtree(path=self)
Comment thread
barneygale marked this conversation as resolved.
Resolved
Comment thread
danielhollas marked this conversation as resolved.
Resolved

def rename(self, target):
"""
Expand Down