From 38ad7a96c55c15486ec87b51b91315021943f8c8 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 14 Jan 2014 00:39:19 +0100 Subject: tinc_stats: make graph generation future compatible --- retiolum/scripts/adv_graphgen/tinc_stats/Availability.py | 2 +- retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Availability.py b/retiolum/scripts/adv_graphgen/tinc_stats/Availability.py index a1ef13f1..66defa44 100755 --- a/retiolum/scripts/adv_graphgen/tinc_stats/Availability.py +++ b/retiolum/scripts/adv_graphgen/tinc_stats/Availability.py @@ -20,7 +20,7 @@ def generate_stats(): for line in f: jlines.append(json.loads(line)) f.close() - except Exception,e: + except Exception as e: pass all_nodes = {} for k in get_all_nodes(): diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py b/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py index ae0fae8f..7bb79708 100644 --- a/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py +++ b/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py @@ -56,4 +56,4 @@ if __name__ == "__main__": usage """ for host,addrs in check_all_the_super(): - print host,addrs + print(host,addrs) -- cgit v1.2.3