Browse Source

platform.windows: SyncFile re-impl is not needed anymore (atm)

Marian Beermann 9 years ago
parent
commit
bae8fd162c
2 changed files with 1 additions and 9 deletions
  1. 1 1
      src/borg/platform/__init__.py
  2. 0 8
      src/borg/platform/windows.pyx

+ 1 - 1
src/borg/platform/__init__.py

@@ -25,5 +25,5 @@ elif sys.platform == 'darwin':  # pragma: darwin only
 elif sys.platform == 'win32':  # pragma: windows only
     from .windows import acl_get, acl_set
     from .windows import API_VERSION
-    from .windows import sync_dir, SyncFile
+    from .windows import sync_dir
     from .windows import get_owner, set_owner

+ 0 - 8
src/borg/platform/windows.pyx

@@ -9,7 +9,6 @@ import array
 
 import platform
 from .helpers import safe_decode, safe_encode
-from .platform_base import SyncFile as BaseSyncFile
 
 API_VERSION = 3
 
@@ -335,10 +334,3 @@ def sync_dir(path):
     # TODO
     pass
 
-
-class SyncFile(BaseSyncFile):
-    def close(self):
-        """sync() and close."""
-        self.sync()
-        self.fd.close()
-        sync_dir(os.path.dirname(self.fd.name))