[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Revert "Add method to remove latest link"
commit a9a109e6472cad4e6dfe388b80efbb7763201e40
Author: juga0 <juga@xxxxxxxxxx>
Date: Tue Oct 23 09:07:21 2018 +0000
Revert "Add method to remove latest link"
This reverts commit 5b33d3a3e9e1658ce2393f0cdd3cb13332faaf94.
Since the option to rm the bw file link has been removed from the
cli.
---
sbws/lib/v3bwfile.py | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 1ada69e..acf0043 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -884,17 +884,6 @@ class V3BWFile(object):
ys = [[getattr(l, k) for l in self.bw_lines] for k in attrs]
return x, ys, attrs
- def rm_link(self, output):
- """"""
- out_dir = os.path.dirname(output)
- out_link = os.path.join(out_dir, 'latest.v3bw')
- log.info('Removing %s link.', output)
- with DirectoryLock(out_dir):
- try:
- os.unlink(out_link)
- except FileNotFoundError:
- pass
-
def write(self, output, rm_link=False):
if output == '/dev/stdout':
log.info("Writing to stdout is not supported.")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits