summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-02-18 23:01:21 +0100
committermakefu <root@pigstarter.de>2014-02-18 23:01:21 +0100
commitfac7133f6dcc2aeb7083ad2971c1e7836b4a2453 (patch)
tree30cb2a0aa986909a632bb600548435609a99a7fb /retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py
parentca650da57a46a1768258bfb88002d9080f0d165c (diff)
fix py2 py3 issue in supernodes script
Diffstat (limited to 'retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py')
-rwxr-xr-xretiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py b/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py
index 7bb79708..7e1f4dae 100755
--- a/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py
+++ b/retiolum/scripts/adv_graphgen/tinc_stats/Supernodes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
def find_potential_super(path="/etc/tinc/retiolum/hosts"):
import os
@@ -56,4 +56,4 @@ if __name__ == "__main__":
usage
"""
for host,addrs in check_all_the_super():
- print(host,addrs)
+ print("%s %s" %(host,str(addrs)))