[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Don't forget to close the extra-info descriptor file
commit a05794837d5def058d6208f36b63f116fc7a921f
Author: Matthew Finkel <Matthew.Finkel@xxxxxxxxx>
Date: Tue Jul 9 11:48:15 2013 +0000
Don't forget to close the extra-info descriptor file
---
lib/bridgedb/Main.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index b9d0d95..621fcb9 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -235,6 +235,7 @@ def load(cfg, splitter, clear=False):
bridges[ID].transports.append(Bridges.PluggableTransport(bridges[ID],
method_name, address, port, argdict))
logging.debug("Closing extra-info document")
+ f.close()
if hasattr(cfg, "COUNTRY_BLOCK_FILE"):
logging.info("Opening Blocking Countries file %s", os.path.abspath(cfg.COUNTRY_BLOCK_FILE))
f = open(cfg.COUNTRY_BLOCK_FILE, 'r')
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits