[tor-commits] [bridgedb/develop] Fix old-style class bridgedb.Storage.BridgeData.

isis at torproject.org isis at torproject.org
Tue Jun 2 21:00:15 UTC 2015


commit 952f2823953758e02bfc13631dd1d83e6a261cd8
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue May 12 08:32:13 2015 +0000

    Fix old-style class bridgedb.Storage.BridgeData.
---
 lib/bridgedb/Storage.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/Storage.py b/lib/bridgedb/Storage.py
index 5d0eb6e..334aadb 100644
--- a/lib/bridgedb/Storage.py
+++ b/lib/bridgedb/Storage.py
@@ -107,7 +107,8 @@ SCHEMA_2TO3_SCRIPT = """
  """
 SCHEMA3_SCRIPT = SCHEMA2_SCRIPT + SCHEMA_2TO3_SCRIPT
 
-class BridgeData:
+
+class BridgeData(object):
     """Value class carrying bridge information:
        hex_key      - The unique hex key of the given bridge
        address      - Bridge IP address
@@ -126,6 +127,7 @@ class BridgeData:
         self.first_seen = first_seen
         self.last_seen = last_seen
 
+
 class Database(object):
     def __init__(self, sqlite_fname):
         self._conn = openDatabase(sqlite_fname)





More information about the tor-commits mailing list