diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2020-12-01 18:14:19 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2021-01-04 05:50:23 +0000 |
commit | c647a4b6f1132684c9d8b8ad71ec38d81147b278 (patch) | |
tree | b346bee32f204af1f3b13cfacb2ad3caa9a9c484 /test/set-proxy | |
parent | 04d1dbacf6aabbb44f16f6776496192964d460d8 (diff) | |
download | connman-c647a4b6f1132684c9d8b8ad71ec38d81147b278.tar.gz connman-c647a4b6f1132684c9d8b8ad71ec38d81147b278.tar.bz2 connman-c647a4b6f1132684c9d8b8ad71ec38d81147b278.zip |
Imported Upstream connman version 1.38
Change-Id: I9e650762f3b2b2a31945b66e044e67a77e3b4b12
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'test/set-proxy')
-rwxr-xr-x | test/set-proxy | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/set-proxy b/test/set-proxy index b9da7b09..f308d327 100755 --- a/test/set-proxy +++ b/test/set-proxy @@ -4,12 +4,12 @@ import sys import dbus if (len(sys.argv) < 2): - print "Usage:" - print "%s <service> direct" % (sys.argv[0]) - print "%s <service> manual [servers=uri1,uri2,...] [excludes=host1,host2,...]" % (sys.argv[0]) - print "%s <service> auto url=[pac-url]" % (sys.argv[0]) - print "Example: %s service0 manual servers=proxy.example.com:8080" % sys.argv[0] - print " This would set the proxy uri and the method to manual" + print("Usage:") + print("%s <service> direct" % (sys.argv[0])) + print("%s <service> manual [servers=uri1,uri2,...] [excludes=host1,host2,...]" % (sys.argv[0])) + print("%s <service> auto url=[pac-url]" % (sys.argv[0])) + print("Example: %s service0 manual servers=proxy.example.com:8080" % sys.argv[0]) + print(" This would set the proxy uri and the method to manual") sys.exit(1) bus = dbus.SystemBus() @@ -40,5 +40,5 @@ for arg in sys.argv[3:]: try: service.SetProperty("Proxy.Configuration", dbus.Dictionary(values, signature='sv')) -except dbus.exceptions.DBusException, e_msg: - print e_msg +except dbus.exceptions.DBusException as e_msg: + print(e_msg) |