From 076c753943e764b2e2a5707a9f9322cc73dfee61 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 19 Feb 2017 16:54:11 -0600 Subject: [PATCH] Remove windows hardlink checks --- beets/util/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/beets/util/__init__.py b/beets/util/__init__.py index ba78dfa30..83f35f563 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -514,14 +514,9 @@ def hardlink(path, dest, replace=False): try: os.link(path, dest) except NotImplementedError: - # raised on python >= 3.2 and Windows versions before Vista raise FilesystemError(u'OS does not support hard links.' 'link', (path, dest), traceback.format_exc()) except OSError as exc: - # TODO: Windows version checks can be removed for python 3 - if hasattr('sys', 'getwindowsversion'): - if sys.getwindowsversion()[0] < 6: # is before Vista - exc = u'OS does not support hard links.' raise FilesystemError(exc, 'link', (path, dest), traceback.format_exc())