Permalink
Browse files

fix

  • Loading branch information...
1 parent 271aa77 commit 1d630d4be5ccbfb00986db1762ba6dad62ca07ab @proycon committed Apr 6, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 formats/folia.py
View
@@ -402,7 +402,8 @@ def makeelement(E, tagname, **kwargs):
#older versions of lxml may misbehave, compensate:
e = E._makeelement(tagname.encode('utf-8'))
for k,v in kwargs.items():
- e.attrib[k.encode('utf-8')] = v
+ e.attrib[k.encode('utf-8')] = v
+ return e
except ValueError as e2:
print(e,file=stderr)
print("tagname=",tagname,file=stderr)

0 comments on commit 1d630d4

Please sign in to comment.