[tor-commits] [torbel/master] Fix bug in torbel.query gzip import support.

sebastian at torproject.org sebastian at torproject.org
Sun Sep 4 07:25:41 UTC 2011


commit 2989b4f608c029523944fa3697c302f56547b642
Author: Harry Bock <hbock at ele.uri.edu>
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")
 





More information about the tor-commits mailing list