Update of /cvsroot/pybot/pybot/pybot
In directory sc8-pr-cvs1:/tmp/cvs-serv27081/pybot
Modified Files:
__init__.py
Log Message:
* pybot/__init__.py,modules/{remoteinfo.py,freshmeat.py}:
Instead of setting the proxy settings in each module
using urllib, set the http_proxy environment variable
in pybot.init().
Index: __init__.py
===================================================================
RCS file: /cvsroot/pybot/pybot/pybot/__init__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** __init__.py 12 May 2003 20:42:20 -0000 1.6
--- __init__.py 23 Aug 2003 22:04:09 -0000 1.7
***************
*** 53,56 ****
--- 53,59 ----
db = SQLiteDB()
+ if config.has_option("global", "http_proxy"):
+ os.environ["http_proxy"] = config.get("global", "http_proxy")
+
main = Main()
|