Commit 1fd15f5f by Sébastien Eustace

Fix an error when trying to move the lock file on Python 2.7

parent 9c816b83
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
### Fixed ### Fixed
- Fixed an error when installing from private repositories. - Fixed an error when installing from private repositories.
- Fixed an error when trying to move the lock file on Python 2.7.
## [0.12.1] - 2018-10-17 ## [0.12.1] - 2018-10-17
......
...@@ -188,7 +188,7 @@ class Poetry: ...@@ -188,7 +188,7 @@ class Poetry:
# Checking for pyproject.lock # Checking for pyproject.lock
old_lock = poetry_file.with_suffix(".lock") old_lock = poetry_file.with_suffix(".lock")
if old_lock.exists(): if old_lock.exists():
shutil.move(old_lock, lock) shutil.move(str(old_lock), str(lock))
locker = Locker(poetry_file.parent / "poetry.lock", local_config) locker = Locker(poetry_file.parent / "poetry.lock", local_config)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment