new method get_comment

This commit is contained in:
Romain Bignon 2011-03-07 08:47:17 +01:00
commit 73b6b1e655
2 changed files with 13 additions and 8 deletions

View file

@ -83,7 +83,7 @@ class Article(object):
self.date = None
self.comments = []
if not tree:
if tree is None:
return
header = tree.find('header')