- non-standard namespaces (BitWorking)\r
\r
Requires Python 2.2 or later\r
+\r
+Modifications made by Adam Sampson for use in rawdog:\r
+- timeout increased to 30 seconds from 10 (since pulling Advogato's recentlog\r
+ takes about 20s, even on my ADSL!)\r
+- when invoked as a script, print the full parser output; this is useful for\r
+ debugging\r
"""\r
\r
__author__ = "Mark Pilgrim (f8dy@diveintomark.org)"\r
\r
try:\r
import timeoutsocket # http://www.timo-tasi.org/python/timeoutsocket.py\r
- timeoutsocket.setDefaultSocketTimeout(10)\r
+ timeoutsocket.setDefaultSocketTimeout(30)\r
except ImportError:\r
pass\r
import cgi, re, sgmllib, string, StringIO, urllib, gzip\r