[tor-commits] [sbws/master] Comment functions not being used

juga at torproject.org juga at torproject.org
Tue Sep 18 09:26:11 UTC 2018


commit a1ccfa430a65d3aefa2468dcedbdf4be1a6fea0d
Author: juga0 <juga at riseup.net>
Date:   Thu Sep 6 16:58:36 2018 +0000

    Comment functions not being used
---
 sbws/util/fs.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sbws/util/fs.py b/sbws/util/fs.py
index 0095f2a..9877cf1 100644
--- a/sbws/util/fs.py
+++ b/sbws/util/fs.py
@@ -84,11 +84,15 @@ def sbws_required_disk_space(conf):
 
 
 def df(path):
+    # Not being used, since it makes a disk space system call and some
+    # systems might not allow it
     """Return space left on device where path is in MiB."""
     return round(shutil.disk_usage(path).free / (1024 ** 2))
 
 
 def is_low_space(conf):
+    # Not being used, since it makes a disk space system call and some
+    # systems might not allow it
     """Warn and return True when the space left on the device is less than
     what is needed for sbws and False otherwise needs.
     """





More information about the tor-commits mailing list