mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
Add requirements.txt and require defusedxml.
This commit is contained in:
parent
a3b1b90874
commit
4fa9393fd6
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
defusedxml
|
||||||
|
numpy
|
||||||
|
requests
|
@ -5,7 +5,6 @@
|
|||||||
import base64
|
import base64
|
||||||
import binascii
|
import binascii
|
||||||
import hashlib
|
import hashlib
|
||||||
import numpy
|
|
||||||
import platform
|
import platform
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
@ -13,11 +12,9 @@ import xml.dom.minidom
|
|||||||
import zlib
|
import zlib
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from math import floor
|
from math import floor
|
||||||
try:
|
import numpy
|
||||||
from defusedxml import ElementTree
|
|
||||||
except (ImportError, AttributeError):
|
|
||||||
from xml.etree import ElementTree
|
|
||||||
import requests
|
import requests
|
||||||
|
from defusedxml import ElementTree
|
||||||
|
|
||||||
ANSI_UP_DEL = u"\u001b[F\u001b[K"
|
ANSI_UP_DEL = u"\u001b[F\u001b[K"
|
||||||
ANSI_RED = u"\u001b[1;31m"
|
ANSI_RED = u"\u001b[1;31m"
|
||||||
|
Loading…
Reference in New Issue
Block a user