[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbel/master] Fix bug in torbel.query gzip import support.
commit 2989b4f608c029523944fa3697c302f56547b642
Author: Harry Bock <hbock@xxxxxxxxxxx>
Date: Sat Sep 18 21:14:50 2010 -0400
Fix bug in torbel.query gzip import support.
Missing a negative sign in the index.
---
query.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/query.py b/query.py
index f1d0046..69e9ec9 100644
--- a/query.py
+++ b/query.py
@@ -265,7 +265,7 @@ class ExitList:
gzipped. """
if filename.endswith(".gz"):
infile = gzip.open(filename, "rb")
- filename = filename[:3]
+ filename = filename[:-3]
else:
infile = open(filename, "rb")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits