diff options
author | makefu <github@syntax-fehler.de> | 2014-01-14 00:39:19 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-01-14 00:39:19 +0100 |
commit | 38ad7a96c55c15486ec87b51b91315021943f8c8 (patch) | |
tree | aff52e2401e8445be215148a6e96d191d4a94723 /retiolum/scripts/adv_graphgen/tinc_stats | |
parent | f0ae61034d5872abd128b5e67c03e523420d42e4 (diff) |
tinc_stats: make graph generation future compatible
Diffstat (limited to 'retiolum/scripts/adv_graphgen/tinc_stats')
-rwxr-xr-x | retiolum/scripts/adv_graphgen/tinc_stats/Availability.py | 2 | ||||
-rw-r--r-- | 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) |