From c54529ee7839f108b32ad7e2ac34e952e95cda44 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 28 Dec 2015 20:07:55 +0000 Subject: [PATCH] Add get_pathinfo. Signed-off-by: Daira Hopwood --- src/allmydata/scripts/backupdb.py | 2 +- src/allmydata/util/fileutil.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/allmydata/scripts/backupdb.py b/src/allmydata/scripts/backupdb.py index e859597c..33aa952e 100644 --- a/src/allmydata/scripts/backupdb.py +++ b/src/allmydata/scripts/backupdb.py @@ -174,7 +174,7 @@ class BackupDB_v2: path = abspath_expanduser_unicode(path) - # XXX consider using get_pathinfo + # TODO: consider using get_pathinfo. s = os.stat(path) size = s[stat.ST_SIZE] ctime = s[stat.ST_CTIME] diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index 185e3fa4..0366daab 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -11,11 +11,6 @@ if sys.platform == "win32": create_unicode_buffer, get_last_error from ctypes.wintypes import BOOL, DWORD, LPCWSTR, LPWSTR, LPVOID, HANDLE -if sys.platform == "win32": - from ctypes import WINFUNCTYPE, WinError, windll, POINTER, byref, c_ulonglong, \ - create_unicode_buffer, get_last_error - from ctypes.wintypes import BOOL, DWORD, LPCWSTR, LPWSTR - from twisted.python import log from pycryptopp.cipher.aes import AES -- 2.45.2