mirror of
https://github.com/beetbox/beets.git
synced 2025-12-21 08:04:03 +01:00
Should have corrected some of the style checking errors.
This commit is contained in:
parent
7651d493d6
commit
a08cb4efb8
1 changed files with 4 additions and 3 deletions
|
|
@ -448,9 +448,10 @@ def move(path, dest, replace=False):
|
|||
raise FilesystemError(exc, 'move', (path, dest),
|
||||
traceback.format_exc())
|
||||
|
||||
|
||||
def link(path, dest, replace=False):
|
||||
"""Create a symbolic link from path to `dest`. Raises an OSError if
|
||||
`dest` already exists, unless `replace` is True. Does nothing if
|
||||
"""Create a symbolic link from path to `dest`. Raises an OSError if
|
||||
`dest` already exists, unless `replace` is True. Does nothing if
|
||||
`path` == `dest`."""
|
||||
if (samefile(path, dest)):
|
||||
return
|
||||
|
|
@ -464,7 +465,7 @@ def link(path, dest, replace=False):
|
|||
os.symlink(path, dest)
|
||||
except OSError:
|
||||
raise FilesystemError('Operating system does not support symbolic '
|
||||
'links.', 'link', (path, dest),
|
||||
'links.', 'link', (path, dest),
|
||||
traceback.format_exc())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue