[tor-commits] [bridgedb/master] Don't forget to close the extra-info descriptor file

asn at torproject.org asn at torproject.org
Tue Jul 9 12:01:39 UTC 2013


commit a05794837d5def058d6208f36b63f116fc7a921f
Author: Matthew Finkel <Matthew.Finkel at gmail.com>
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')





More information about the tor-commits mailing list