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:
parent
9d37e3ced2
commit
358e690c54
2 changed files with 1 additions and 7 deletions
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue