1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Remove move from tests.lib.path.Path.

This commit is contained in:
Chris Hunt 2019-07-19 20:25:04 -04:00 committed by Xavier Fernandez
parent 9d37e3ced2
commit 358e690c54
2 changed files with 1 additions and 7 deletions

View file

@ -195,12 +195,6 @@ class Path(_base):
"""
return shutil.copytree(self, to, symlinks=True)
def move(self, to):
"""
Moves a file or directory to another path.
"""
return shutil.move(self, to)
def rename(self, to):
"""
Renames a file or directory. May throw an OSError.

View file

@ -154,7 +154,7 @@ class VirtualEnvironment(object):
self._create(clear=True)
def move(self, location):
self.location.move(location)
shutil.move(self.location, location)
self.location = Path(location)
self._update_paths()