- """ Gnome via python-gconf """
- from gconf import client_get_default
- gconf_client = client_get_default()
- mode = gconf_client.get_string("/system/proxy/mode")
- if mode != "manual":
- return None, None
- host = gconf_client.get_string("/system/proxy/socks_host")
- port = gconf_client.get_int("/system/proxy/socks_port")
- return host, port
+ """ Gnome via python-gconf """
+ from gconf import client_get_default
+ gconf_client = client_get_default()
+ mode = gconf_client.get_string("/system/proxy/mode")
+ if mode != "manual":
+ return None, None
+ host = gconf_client.get_string("/system/proxy/socks_host")
+ port = gconf_client.get_int("/system/proxy/socks_port")
+ return host, port