From 9a5bd10d40f32ea04dfb263238cd107ab29a6c51 Mon Sep 17 00:00:00 2001 From: SpootDev Date: Tue, 28 Jun 2016 18:28:01 -0500 Subject: [PATCH] celementtree --- resources/lib/utils.py | 5 ++++- resources/lib/videonodes.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index cda4c5e2..34d22449 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -11,7 +11,10 @@ import StringIO import os import time import unicodedata -import xml.etree.ElementTree as etree +try: + import xml.etree.cElementTree as etree +except ImportError: + import xml.etree.ElementTree as etree from datetime import datetime import xbmc diff --git a/resources/lib/videonodes.py b/resources/lib/videonodes.py index bf1d20f4..a35695a3 100644 --- a/resources/lib/videonodes.py +++ b/resources/lib/videonodes.py @@ -3,7 +3,10 @@ ################################################################################################# import shutil -import xml.etree.ElementTree as etree +try: + import xml.etree.cElementTree as etree +except ImportError: + import xml.etree.ElementTree as etree import xbmc import xbmcaddon