From a08cb4efb8de15e758a941f11d62f5be9df5a35a Mon Sep 17 00:00:00 2001 From: Rovanion Luckey Date: Wed, 10 Sep 2014 12:33:12 +0200 Subject: [PATCH] Should have corrected some of the style checking errors. --- beets/util/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 072afa9ce..529bbb2f3 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -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())