diff options
author | Ali Sabil <ali.sabil@gmail.com> | 2007-03-20 16:15:15 +0530 |
---|---|---|
committer | Ali Sabil <ali.sabil@gmail.com> | 2007-03-20 16:15:15 +0530 |
commit | 02416ce2aec49c4fd939fd1bc4673b2d49668f02 (patch) | |
tree | 1cfb9a9ab0d099ed39077af81d039f3e1d1fb149 /test.py | |
parent | 41217109036ff55b5eb8a0e1e314344813058a81 (diff) |
- Updated pymsn to the new gio
- Added proxy support to service/
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ def get_proxies(): import urllib proxies = urllib.getproxies() result = {} + if 'https' not in proxies and \ + 'http' in proxies: + url = proxies['http'].replace("http://", "https://") + result['https'] = pymsn.Proxy(url) for type, url in proxies.items(): if type == 'no': continue result[type] = pymsn.Proxy(url) |