[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Fix old-style class bridgedb.Storage.BridgeData.
commit 952f2823953758e02bfc13631dd1d83e6a261cd8
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits