Skip to content

Commit

Permalink
Fix a bug where the Published / Updated attributes were not getting s…
Browse files Browse the repository at this point in the history
…et right.
  • Loading branch information
corycozi committed Mar 25, 2011
1 parent 783d28e commit 2272f62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feedreader/feeds/atom10.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Atom10Feed(Feed):
def published(self):
if self._published is None:
try:
datestr = self._xml.feed.published
datestr = self._xml.published
except AttributeError:
self._published = self.updated
else:
Expand All @@ -96,7 +96,7 @@ def published(self):
def updated(self):
if self._updated is None:
try:
datestr = self._xml.feed.updated
datestr = self._xml.updated
except AttributeError:
self._updated = None
else:
Expand All @@ -110,4 +110,4 @@ def is_valid(self):

@property
def entries(self):
return [Atom10Item(item) for item in self._xml.iterchildren(tag='{http://www.w3.org/2005/Atom}entry')]
return [Atom10Item(item) for item in self._xml.iterchildren(tag='{http://www.w3.org/2005/Atom}entry')]

0 comments on commit 2272f62

Please sign in to comment.