From 75a8eaf5aa1996c79180a78cd2b1d91ffb3836f1 Mon Sep 17 00:00:00 2001
From: Andrew Bauer <zonexpertconsulting@outlook.com>
Date: Tue, 16 Jun 2020 09:56:33 -0500
Subject: [PATCH] replace cElementTree with ElementTree
---
ouimeaux/device/api/service.py | 2 +-
ouimeaux/device/bridge.py | 2 +-
ouimeaux/device/maker.py | 2 +-
ouimeaux/subscribe.py | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ouimeaux/device/api/service.py b/ouimeaux/device/api/service.py
index b89c9a4..b225181 100644
--- a/ouimeaux/device/api/service.py
+++ b/ouimeaux/device/api/service.py
@@ -1,5 +1,5 @@
import logging
-from xml.etree import cElementTree as et
+from xml.etree import ElementTree as et
from ...utils import requests_get, requests_post
from .xsd import service as serviceParser
diff --git a/ouimeaux/device/bridge.py b/ouimeaux/device/bridge.py
index 9c0babf..6be7cff 100644
--- a/ouimeaux/device/bridge.py
+++ b/ouimeaux/device/bridge.py
@@ -1,6 +1,6 @@
from ouimeaux.device import Device
-from xml.etree import cElementTree as et
+from xml.etree import ElementTree as et
class Bridge(Device):
diff --git a/ouimeaux/device/maker.py b/ouimeaux/device/maker.py
index fc91382..7eab460 100644
--- a/ouimeaux/device/maker.py
+++ b/ouimeaux/device/maker.py
@@ -1,6 +1,6 @@
from datetime import datetime
from ouimeaux.device import Device
-from xml.etree import cElementTree as et
+from xml.etree import ElementTree as et
class Maker(Device):
diff --git a/ouimeaux/subscribe.py b/ouimeaux/subscribe.py
index 1e57d21..713e2d8 100644
--- a/ouimeaux/subscribe.py
+++ b/ouimeaux/subscribe.py
@@ -1,6 +1,6 @@
from collections import defaultdict
import logging
-from xml.etree import cElementTree
+from xml.etree import ElementTree
from functools import partial
import gevent
@@ -69,7 +69,7 @@ def _handle(self, environ, start_response):
data = environ['wsgi.input'].read()
# trim garbage from end, if any
data = data.split("\n\n")[0]
- doc = cElementTree.fromstring(data)
+ doc = ElementTree.fromstring(data)
for propnode in doc.findall('./{0}property'.format(NS)):
for property_ in propnode.getchildren():
text = property_.text