lists.arthurdejong.org
RSS feed

webcheck commit: r451 - webcheck/webcheck

[Date Prev][Date Next] [Thread Prev][Thread Next]

webcheck commit: r451 - webcheck/webcheck



Author: arthur
Date: Sat Oct  8 15:58:00 2011
New Revision: 451
URL: http://arthurdejong.org/viewvc/webcheck?revision=451&view=revision

Log:
switch to using MozillaCookieJar because LWPCookieJar has issues with some 
dates (http://bugs.python.org/issue5537)

Modified:
   webcheck/webcheck/crawler.py

Modified: webcheck/webcheck/crawler.py
==============================================================================
--- webcheck/webcheck/crawler.py        Fri Oct  7 15:21:22 2011        (r450)
+++ webcheck/webcheck/crawler.py        Sat Oct  8 15:58:00 2011        (r451)
@@ -64,9 +64,9 @@
     """Configure the urllib2 module to store cookies in the output
     directory."""
     import webcheck  # local import to avoid import loop
-    filename = os.path.join(config.OUTPUT_DIR, 'cookies.lwp')
+    filename = os.path.join(config.OUTPUT_DIR, 'cookies.txt')
     # set up our cookie jar
-    cookiejar = cookielib.LWPCookieJar(filename)
+    cookiejar = cookielib.MozillaCookieJar(filename)
     try:
         cookiejar.load(ignore_discard=False, ignore_expires=False)
     except IOError:
-- 
To unsubscribe send an email to
webcheck-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-commits/