#2314: Detailed reports won't run - Reverted change r10874->r10873 #2289: Replace dict.has_keyx calls with x in dict

svn: r10976
This commit is contained in:
Jérôme Rapinat 2008-08-08 09:50:01 +00:00
parent e4b5e71897
commit c89daff4ae

View File

@ -1199,7 +1199,7 @@ class SheetParser(handler.ContentHandler):
self.f.set_underline(int(attrs['underline']))
self.f.set_color(cnv2color(attrs['color']))
elif tag == "para":
if attrs.has_key('description'):
if 'description' in attrs:
self.p.set_description(attrs['description'])
self.p.set_right_margin(Utils.gfloat(attrs['rmargin']))
self.p.set_right_margin(Utils.gfloat(attrs['rmargin']))