Fix comment and docstring typos
This commit is contained in:
parent
2c7adc1a7c
commit
b7929a8a03
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ def check_and_remove(source, destination, force=False):
|
|||
|
||||
If it's a file, we remove it if --force is provided, or error if not.
|
||||
|
||||
If we need to re-deply the symlink, return True, else return False.
|
||||
If we need to re-deploy the symlink, return True, else return False.
|
||||
"""
|
||||
pathlib.Path(os.path.dirname(destination)).mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
@ -45,7 +45,7 @@ def check_and_remove(source, destination, force=False):
|
|||
else:
|
||||
raise OSError(destination + " exists as a file and --force not provided")
|
||||
|
||||
# File doesn't exists or undefined "thing" happened, return True to try to
|
||||
# File doesn't exist or undefined "thing" happened, return True to try to
|
||||
# write, and if something goes wrong, we'll see the OSError
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue