[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Fix old-style classes in bridgedb.Bucket.
commit eecabb0e5054ad619fa8591bfc067cc38ed04cc5
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Wed Aug 20 05:43:12 2014 +0000
Fix old-style classes in bridgedb.Bucket.
---
lib/bridgedb/Bucket.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bridgedb/Bucket.py b/lib/bridgedb/Bucket.py
index fcc3794..b5054ac 100644
--- a/lib/bridgedb/Bucket.py
+++ b/lib/bridgedb/Bucket.py
@@ -37,7 +37,7 @@ toHex = binascii.b2a_hex
# distinguish them from real distributors?
PSEUDO_DISTRI_PREFIX = "pseudo_"
-class BucketData:
+class BucketData(object):
"""A file bucket value class.
name - Name of the bucket (From config), prefixed by pseudo
distributor prefix
@@ -52,7 +52,7 @@ class BucketData:
self.needed = int(needed)
self.allocated = 0
-class BucketManager:
+class BucketManager(object):
"""BucketManager reads a number of file bucket identifiers from the config.
They're expected to be in the following format:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits