<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: PersonalProfileDocument Parsing</title>
	<atom:link href="http://crschmidt.net/blog/69/personalprofiledocument-parsing/feed/" rel="self" type="application/rss+xml" />
	<link>http://crschmidt.net/blog/69/personalprofiledocument-parsing/</link>
	<description>Ramblings of a GIS Hacker</description>
	<pubDate>Wed, 03 Dec 2008 21:01:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Darren Chamberlain</title>
		<link>http://crschmidt.net/blog/69/personalprofiledocument-parsing/#comment-1996</link>
		<dc:creator>Darren Chamberlain</dc:creator>
		<pubDate>Tue, 24 May 2005 15:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://crschmidt.net/blog/archives/69/personalprofiledocument-parsing/#comment-1996</guid>
		<description>In a FOAF doc without a &lt;code&gt;PersonalProfileDocument&lt;/code&gt; element, like the one I'm testing with, &lt;code&gt;ppd.py&lt;/code&gt; has a problem:

&lt;code&gt;
Traceback (most recent call last):
  File "ppd.py.orig", line 70, in ?
    print get_person(sys.argv[1])
  File "ppd.py.orig", line 49, in get_person
    if not target:
UnboundLocalError: local variable 'target' referenced before assignment
&lt;/code&gt;

This can be fixed by moving the target = None line from line 30 to line 20 and reindenting it suitably (I'd paste the diff but the formatting would be wrong).</description>
		<content:encoded><![CDATA[<p>In a FOAF doc without a <code>PersonalProfileDocument</code> element, like the one I&#8217;m testing with, <code>ppd.py</code> has a problem:</p>
<p><code><br />
Traceback (most recent call last):<br />
  File "ppd.py.orig", line 70, in ?<br />
    print get_person(sys.argv[1])<br />
  File &#8220;ppd.py.orig&#8221;, line 49, in get_person<br />
    if not target:<br />
UnboundLocalError: local variable &#8216;target&#8217; referenced before assignment<br />
</code></p>
<p>This can be fixed by moving the target = None line from line 30 to line 20 and reindenting it suitably (I&#8217;d paste the diff but the formatting would be wrong).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
