Skip to content

Commit 46fbc71

Browse files
committed
Fix circular import between fs.base, fs.osfs and fs.move
1 parent 78f6696 commit 46fbc71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fs/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import six
2323

24-
from . import copy, errors, fsencode, iotools, move, tools, walk, wildcard
24+
from . import copy, errors, fsencode, iotools, tools, walk, wildcard
2525
from .copy import copy_modified_time
2626
from .glob import BoundGlobber
2727
from .mode import validate_open_mode
@@ -1083,10 +1083,12 @@ def movedir(self, src_path, dst_path, create=False, preserve_time=False):
10831083
ancestors is not a directory.
10841084
10851085
"""
1086+
from .move import move_dir
1087+
10861088
with self._lock:
10871089
if not create and not self.exists(dst_path):
10881090
raise errors.ResourceNotFound(dst_path)
1089-
move.move_dir(self, src_path, self, dst_path, preserve_time=preserve_time)
1091+
move_dir(self, src_path, self, dst_path, preserve_time=preserve_time)
10901092

10911093
def makedirs(
10921094
self,

0 commit comments

Comments
 (0)