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

[tor-commits] [ooni-probe/master] Fix bug that emerges when using CGeoIP.



commit e82178bbf56c570878403023cdaa1d3a74f83067
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Mon Jan 13 14:14:02 2014 +0100

    Fix bug that emerges when using CGeoIP.
---
 ooni/geoip.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ooni/geoip.py b/ooni/geoip.py
index 6c539e9..a97a6f5 100644
--- a/ooni/geoip.py
+++ b/ooni/geoip.py
@@ -18,7 +18,7 @@ except ImportError:
     try:
         import GeoIP as CGeoIP
         def GeoIP(database_path, *args, **kwargs):
-            return CGeoIP.open(database_path)
+            return CGeoIP.open(database_path, CGeoIP.GEOIP_STANDARD)
     except ImportError:
         log.err("Unable to import pygeoip. We will not be able to run geo IP related measurements")
 



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