diff options
author | 2008-12-22 23:08:12 -0800 | |
---|---|---|
committer | 2008-12-22 23:08:46 -0800 | |
commit | 4aa143f13e3a7cebcbece19ff4800057eafc352e (patch) | |
tree | 43c943391b66031c92aa69ea9f6b63b89778d9ce | |
parent | Remove wget usage for buglist. (diff) | |
download | gard-4aa143f13e3a7cebcbece19ff4800057eafc352e.tar.gz gard-4aa143f13e3a7cebcbece19ff4800057eafc352e.tar.bz2 gard-4aa143f13e3a7cebcbece19ff4800057eafc352e.zip |
Reminder about timeouts.
-rw-r--r-- | check.py | 1 | ||||
-rwxr-xr-x | gard-v2.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -38,6 +38,7 @@ class GardCheck: # corresponding time stamp in seconds def _get_timestamp_from_url(self, url): try: + # TODO: Add a timeout f = urllib2.urlopen(url) date = f.read() f.close() @@ -39,6 +39,7 @@ def add_handler(logfile): def remove_handler(handler): logging.getLogger('').removeHandler(handler) +# TODO: Add a timeout _ = urllib2.urlopen(bugurl) file = _.readlines() _.close() |