Commits

Alexander Herrmann committed 4f4ff30

fixed XMLEmitter xml parsing

  • Participants
  • Parent commits 76eee59

Comments (0)

Files changed (1)

piston/emitters.py

 
 Emitter.register('xml', XMLEmitter, 'text/xml; charset=utf-8')
 if xml2dict: # if import was successfull
-    Mimer.register(xml2dict.fromstring, ('text/xml',))
+    Mimer.register(XMLEmitter.parse_xml, ('text/xml',))
 
 class JSONEmitter(Emitter):
     """