[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit a1ccfa430a65d3aefa2468dcedbdf4be1a6fea0d
Author: juga0 <juga@xxxxxxxxxx>
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.
     """



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits