diff options
| author | Brian Potchik <brian@vector35.com> | 2018-10-14 22:47:22 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2018-10-18 17:50:25 -0400 |
| commit | 80cb1f68c83112c4d99893ad2f23bf22abdc4a6d (patch) | |
| tree | 9ebd185b5d61fedccfd811d5b4a4720a1f669da0 /python/downloadprovider.py | |
| parent | e01f0e0fe635c0fe703fbdd09d44a5d7da7c4b93 (diff) | |
Initial Enhanced Settings System.
Diffstat (limited to 'python/downloadprovider.py')
| -rw-r--r-- | python/downloadprovider.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/downloadprovider.py b/python/downloadprovider.py index b619b40c..5ce8cfce 100644 --- a/python/downloadprovider.py +++ b/python/downloadprovider.py @@ -28,7 +28,7 @@ import traceback import binaryninja._binaryninjacore as core import binaryninja -from binaryninja.setting import Setting +from binaryninja.settings import Settings from binaryninja import with_metaclass from binaryninja import startup from binaryninja import log @@ -171,7 +171,7 @@ if (sys.platform != "win32") and (sys.version_info >= (2, 7, 9)): @abc.abstractmethod def perform_request(self, url): try: - proxy_setting = Setting('download-client').get_string('https-proxy') + proxy_setting = Settings().get_string('downloadClient.httpsProxy') if proxy_setting: opener = build_opener(ProxyHandler({'https': proxy_setting})) install_opener(opener) @@ -209,7 +209,7 @@ if (sys.platform != "win32") and (sys.version_info >= (2, 7, 9)): return 0 class PythonDownloadProvider(DownloadProvider): - name = "DefaultDownloadProvider" + name = "PythonDownloadProvider" instance_class = PythonDownloadInstance PythonDownloadProvider().register() @@ -229,7 +229,7 @@ else: @abc.abstractmethod def perform_request(self, url): try: - proxy_setting = Setting('download-client').get_string('https-proxy') + proxy_setting = Settings().get_string('downloadClient.httpsProxy') if proxy_setting: proxies = {"https": proxy_setting} else: @@ -263,7 +263,7 @@ else: return 0 class PythonDownloadProvider(DownloadProvider): - name = "DefaultDownloadProvider" + name = "PythonDownloadProvider" instance_class = PythonDownloadInstance PythonDownloadProvider().register() |
