Commit 0df474c8 authored by Sam Ruby's avatar Sam Ruby

Support backlevel versions of Python

parent 88fd1b80
......@@ -69,7 +69,7 @@ right directory.</p></li>
<p>Build your own themes, templates, or filters! And share!</p></li>
<h3>Mac OS X and Fink Instructions</h3>
<h3 id="macosx">Mac OS X and Fink Instructions</h3>
The <a href="">Fink Project</a> packages
......@@ -101,12 +101,20 @@ not yet ported to the newer python so Venus will be less featureful.
may want to explicitly specify <code>python2.4</code>.</p></li>
<h3>Ubuntu Linux (Edgy Eft) instructions</h3>
<h3 id="ubuntu">Ubuntu Linux (Edgy Eft) instructions</h3>
<p>Before starting, issue the following command:</p>
<li><code>sudo apt-get install bzr python2.4-librdf</code></li>
<blockquote><pre>sudo apt-get install bzr python2.4-librdf</pre></blockquote>
<h3 id="python22">Python 2.2 instructions</h3>
<p>If you are running Python 2.2, you may also need to install <a href="">pyxml</a>. If the
following runs without error, you do <b>not</b> have the problem.</p>
<blockquote><pre>python -c "__import__('xml.dom.minidom').dom.minidom.parseString('&lt;entry xml:lang=\"en\"/&gt;')"</pre></blockquote>
<p>Installation of pyxml varies by platform. For Ubuntu Linux (Dapper Drake), issue the following command:</p>
<blockquote><pre>sudo apt-get install python2.2-xml</pre></blockquote>
......@@ -16,10 +16,11 @@ def getLogger(level, format):
import logging
import compat_logging as logging
logger = logging.getLogger("planet.runner")
......@@ -260,7 +260,7 @@ def spiderFeed(feed, only_if_new=0):
# apply any filters
xdoc = reconstitute.reconstitute(data, entry)
output = xdoc.toxml('utf-8')
output = xdoc.toxml().encode('utf-8')
for filter in config.filters(feed):
output =, output, mode="filter")
......@@ -320,7 +320,7 @@ def spiderFeed(feed, only_if_new=0):
xdoc=minidom.parseString('''<feed xmlns:planet="%s"
xmlns=""/>\n''' % planet.xmlns)
write(xdoc.toxml('utf-8'), filename(sources, feed))
write(xdoc.toxml().encode('utf-8'), filename(sources, feed))
def spiderPlanet(only_if_new = False):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment