[tor-commits] [metrics-tasks/master] Python 2.6.6 does not have dict.viewvalues()

karsten at torproject.org karsten at torproject.org
Mon Jul 23 06:37:17 UTC 2012


commit fc5076ad8332c595d063d3159d4d4d0fa68ac9b6
Author: Michael Zeltner <m at niij.org>
Date:   Sat Jul 21 16:04:42 2012 +0200

    Python 2.6.6 does not have dict.viewvalues()
---
 task-6329/tor-relays-stats.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/task-6329/tor-relays-stats.py b/task-6329/tor-relays-stats.py
index 09bf98a..8fe142e 100755
--- a/task-6329/tor-relays-stats.py
+++ b/task-6329/tor-relays-stats.py
@@ -61,7 +61,7 @@ class RelayStats(object):
 
     def format_and_sort_groups(self, grouped_relays, by_country=False, by_as_number=False):
         formatted_groups = {}
-        for group in grouped_relays.viewvalues():
+        for group in grouped_relays.values():
             group_weights = (0, 0, 0, 0, 0)
             relays_in_group = 0
             for relay in group:



More information about the tor-commits mailing list