[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 6205c5b62775899dfefd36861d01a7ca982209ed
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits