From 7558190d744cba8861087374f17a68fe056e0086 Mon Sep 17 00:00:00 2001 From: Adam Fiebig Date: Mon, 9 May 2016 14:06:49 -0400 Subject: [PATCH] Fixed defusedexpat expat import Original defused expat import was broken and not pointing to the location of defusedexpat's expat (pyexpat) --- xmltodict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltodict.py b/xmltodict.py index 711539e..8d68463 100755 --- a/xmltodict.py +++ b/xmltodict.py @@ -2,7 +2,7 @@ "Makes working with XML feel like you are working with JSON" try: - import defusedexpat as expat + from defusedexpat import pyexpat as expat except ImportError: from xml.parsers import expat from xml.sax.saxutils import XMLGenerator