[library-web] added missing ElementTree import
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [library-web] added missing ElementTree import
- Date: Thu, 6 Aug 2009 20:17:40 +0000 (UTC)
commit 4d4f40bc841a7f61f7e987e0bca94c7eca6fbf06
Author: Frédéric Péters <fpeters 0d be>
Date: Thu Aug 6 22:16:14 2009 +0200
added missing ElementTree import
src/modtypes/gnomedocbook.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/gnomedocbook.py b/src/modtypes/gnomedocbook.py
index 5fda187..d25e422 100644
--- a/src/modtypes/gnomedocbook.py
+++ b/src/modtypes/gnomedocbook.py
@@ -24,6 +24,11 @@ import stat
import tarfile
try:
+ import elementtree.ElementTree as ET
+except ImportError:
+ import xml.etree.ElementTree as ET
+
+try:
import html5lib
except ImportError:
html5lib = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]