diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-01-25 06:15:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2021-01-25 06:15:21 +0000 |
commit | 6d2cf90574c81cd30340116270e17af058703afb (patch) | |
tree | d9aed754a3add94019a93239281de03bba42af85 /test/get-proxy-autoconfig | |
parent | 5bf80017321e03103f588306d2888d22f3f67ffa (diff) | |
parent | c647a4b6f1132684c9d8b8ad71ec38d81147b278 (diff) | |
download | connman-6d2cf90574c81cd30340116270e17af058703afb.tar.gz connman-6d2cf90574c81cd30340116270e17af058703afb.tar.bz2 connman-6d2cf90574c81cd30340116270e17af058703afb.zip |
Merge "Imported Upstream connman version 1.38" into tizen
Diffstat (limited to 'test/get-proxy-autoconfig')
-rwxr-xr-x | test/get-proxy-autoconfig | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/get-proxy-autoconfig b/test/get-proxy-autoconfig index 6709a9e8..b96e800e 100755 --- a/test/get-proxy-autoconfig +++ b/test/get-proxy-autoconfig @@ -1,12 +1,12 @@ #!/usr/bin/python import dbus -import urllib +import urllib.request, urllib.parse, urllib.error def get_pac(url): - conn = urllib.urlopen(url, proxies={}) + conn = urllib.request.urlopen(url, proxies={}) data = conn.read() - print data + print(data) conn.close() bus = dbus.SystemBus() @@ -23,15 +23,15 @@ for entry in services: proxy = properties["Proxy"] if "Method" in proxy: - print "[ %s ]" % (path) + print("[ %s ]" % (path)) method = proxy["Method"] - print "Method = %s" % (method) + print("Method = %s" % (method)) if method in ["auto"]: url = proxy["URL"] - print "URL = %s" % (url) - print + print("URL = %s" % (url)) + print() get_pac(url) else: - print + print() |