|  | 
| 14 | 14 | from abc import ABC, abstractmethod | 
| 15 | 15 | from glob import _PathGlobber, _no_recurse_symlinks | 
| 16 | 16 | from pathlib import PurePath, Path | 
| 17 |  | -from pathlib._os import magic_open, CopyReader, CopyWriter | 
|  | 17 | +from pathlib._os import magic_open, CopyWriter | 
| 18 | 18 | 
 | 
| 19 | 19 | 
 | 
| 20 | 20 | def _explode_path(path): | 
| @@ -302,16 +302,6 @@ def glob(self, pattern, *, case_sensitive=None, recurse_symlinks=True): | 
| 302 | 302 |         select = globber.selector(parts) | 
| 303 | 303 |         return select(self.joinpath('')) | 
| 304 | 304 | 
 | 
| 305 |  | -    def rglob(self, pattern, *, case_sensitive=None, recurse_symlinks=True): | 
| 306 |  | -        """Recursively yield all existing files (of any kind, including | 
| 307 |  | -        directories) matching the given relative pattern, anywhere in | 
| 308 |  | -        this subtree. | 
| 309 |  | -        """ | 
| 310 |  | -        if not isinstance(pattern, JoinablePath): | 
| 311 |  | -            pattern = self.with_segments(pattern) | 
| 312 |  | -        pattern = '**' / pattern | 
| 313 |  | -        return self.glob(pattern, case_sensitive=case_sensitive, recurse_symlinks=recurse_symlinks) | 
| 314 |  | - | 
| 315 | 305 |     def walk(self, top_down=True, on_error=None, follow_symlinks=False): | 
| 316 | 306 |         """Walk the directory tree from this directory, similar to os.walk().""" | 
| 317 | 307 |         paths = [self] | 
| @@ -353,8 +343,6 @@ def readlink(self): | 
| 353 | 343 |         """ | 
| 354 | 344 |         raise NotImplementedError | 
| 355 | 345 | 
 | 
| 356 |  | -    _copy_reader = property(CopyReader) | 
| 357 |  | - | 
| 358 | 346 |     def copy(self, target, follow_symlinks=True, dirs_exist_ok=False, | 
| 359 | 347 |              preserve_metadata=False): | 
| 360 | 348 |         """ | 
|  | 
0 commit comments