Use standard option syntax (i.e. "--update --write" instead of "update
write"). The old syntax will be supported until 2.0.
+Warning output from --update now goes to stderr instead of stdout.
+
- rawdog 1.2
Updated feedparser to 2.5.2, which fixes a bug that was making rawdog
VERSION = "1.3"
import feedparser
from persister import Persistable, Persister
-import os, time, sha, getopt
+import os, time, sha, getopt, sys
from StringIO import StringIO
import timeoutsocket
self.last_update = now
if error is not None:
- print "Feed: " + self.url
+ print >>sys.stderr, "Feed: " + self.url
if status is not None:
- print "HTTP Status: " + str(status)
- print error
- print
+ print >>sys.stderr, "HTTP Status: " + str(status)
+ print >>sys.stderr, error
+ print >>sys.stderr
if not non_fatal:
return 0