diff options
| author | Michael Biebl <biebl@debian.org> | 2018-04-23 18:01:04 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-04-23 18:01:04 +0200 |
| commit | d00e17d14b5df5f7fcba1a17f91edbb3180fbf64 (patch) | |
| tree | 2b16542fff332a3c38fb2191f7ae4d4795f66451 /examples/python/gi/get_ips.py | |
| parent | 2e03b565aa24225ca4992797a5d563542b0b2bdd (diff) | |
| parent | f60117b41d5433be1b4a96d82cd11d0c3dce9b63 (diff) | |
Update upstream source from tag 'upstream/1.11.3'
Update to upstream version '1.11.3' with Debian dir a3a34e6c602cb81e76dc3c255c617e7f7ecfc11c
Diffstat (limited to 'examples/python/gi/get_ips.py')
| -rwxr-xr-x | examples/python/gi/get_ips.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/python/gi/get_ips.py b/examples/python/gi/get_ips.py index 77e1d171..66d154f2 100755 --- a/examples/python/gi/get_ips.py +++ b/examples/python/gi/get_ips.py @@ -116,8 +116,8 @@ if __name__ == "__main__": dev = c.get_device_by_iface(dev_iface) if dev is None: sys.exit('Device \'%s\' not found' % dev_iface) - print "Device: %s - %s" % (dev_iface, dev.get_device_type().value_name) - print "---------------------------------------" + print("Device: %s - %s" % (dev_iface, dev.get_device_type().value_name)) + print("---------------------------------------") print("IPv4 addresses:") print("---------------") @@ -134,7 +134,7 @@ if __name__ == "__main__": show_routes(dev, socket.AF_INET) print - print "IPv6 addresses:" + print("IPv6 addresses:") print("---------------") show_addresses(dev, socket.AF_INET6) print @@ -144,17 +144,17 @@ if __name__ == "__main__": show_gateway(dev, socket.AF_INET6) print - print "IPv6 routes:" + print("IPv6 routes:") print("------------") show_routes(dev, socket.AF_INET6) print - print "IPv4 DNS:" + print("IPv4 DNS:") print("------------") show_dns(dev, socket.AF_INET) print - print "IPv6 DNS:" + print("IPv6 DNS:") print("------------") show_dns(dev, socket.AF_INET6) print |