From 2e461091dd0180ac74516956f86ea51e4be7c720 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sat, 15 Sep 2007 15:51:19 +0000 Subject: [PATCH] clean up statvfs --- src/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core.py b/src/core.py index 8ebb28a71..1712ceb5f 100644 --- a/src/core.py +++ b/src/core.py @@ -54,8 +54,6 @@ import re import shutil import platform import common -if not common.windows_check(): - import statvfs import time import deluge_core @@ -798,6 +796,7 @@ class Manager: def calc_free_space(self, directory): if not common.windows_check(): + import statvfs dir_stats = os.statvfs(directory) block_size = dir_stats[statvfs.F_BSIZE] avail_blocks = dir_stats[statvfs.F_BAVAIL]