[tor-commits] [bridgedb/develop] Fix two typos in attribute names of Stem's descriptors.

isis at torproject.org isis at torproject.org
Thu Feb 19 02:21:13 UTC 2015


commit 6205c5b62775899dfefd36861d01a7ca982209ed
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Dec 11 03:52:26 2014 +0000

    Fix two typos in attribute names of Stem's descriptors.
---
 lib/bridgedb/bridges.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/bridges.py b/lib/bridgedb/bridges.py
index 892872f..5498758 100644
--- a/lib/bridgedb/bridges.py
+++ b/lib/bridgedb/bridges.py
@@ -1192,7 +1192,7 @@ class Bridge(BridgeBackwardsCompatibility):
         # These fields are *only* found in the networkstatus document:
         self.descriptorDigest = descriptor.digest
         self.flags.update(descriptor.flags)
-        self.bandwidth = descriptor.bandwith
+        self.bandwidth = descriptor.bandwidth
 
         # These fields are also found in the server-descriptor. We will prefer
         # to use the information taken later from the server-descriptor
@@ -1246,7 +1246,7 @@ class Bridge(BridgeBackwardsCompatibility):
 
         self.bandwidthAverage = descriptor.average_bandwidth
         self.bandwidthBurst = descriptor.burst_bandwidth
-        self.bandwidthObserved = descriptor.bandwidth_observed
+        self.bandwidthObserved = descriptor.observed_bandwidth
 
         self.contact = descriptor.contact
         self.family = descriptor.family





More information about the tor-commits mailing list