Fix #3452 (epubcheck1.0.4 errors - attribute file-as not allowed at this point)

This commit is contained in:
Kovid Goyal 2009-09-22 13:12:02 -06:00
parent 9985700d15
commit 74db760282

View File

@ -666,7 +666,7 @@ class OPF(object):
for key in matches[0].attrib:
if key.endswith('file-as'):
matches[0].attrib.pop(key)
matches[0].set('file-as', unicode(val))
matches[0].set('{%s}file-as'%self.NAMESPACES['opf'], unicode(val))
return property(fget=fget, fset=fset)