tagreader 6.0.0__tar.gz → 6.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tagreader-6.0.0 → tagreader-6.0.1}/PKG-INFO +1 -1
- {tagreader-6.0.0 → tagreader-6.0.1}/pyproject.toml +1 -1
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/web_handlers.py +7 -2
- {tagreader-6.0.0 → tagreader-6.0.1}/LICENSE +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/README.md +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/__init__.py +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/__version__.py +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/cache.py +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/clients.py +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/logger.py +0 -0
- {tagreader-6.0.0 → tagreader-6.0.1}/tagreader/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "tagreader"
|
|
3
|
-
version = "6.0.
|
|
3
|
+
version = "6.0.1"
|
|
4
4
|
description = "Tagreader is a Python package for reading trend data from the OSIsoft PI and Aspen Infoplus.21 IMS systems."
|
|
5
5
|
authors = ["Einar S. Idsø <eiids@equinor.com>", "Morten Dæhli Aslesen <masl@equinor.com"]
|
|
6
6
|
license = "MIT"
|
|
@@ -38,11 +38,16 @@ class MD4:
|
|
|
38
38
|
return self._hash_obj.hexdigest()
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
def patched_hashlib_new(name, data=b""):
|
|
41
|
+
def patched_hashlib_new(name, data=b"", usedforsecurity=True):
|
|
42
42
|
if name.lower() == "md4":
|
|
43
43
|
return MD4(data)
|
|
44
44
|
else:
|
|
45
|
-
|
|
45
|
+
# Try / Catch easier than detecting python version
|
|
46
|
+
try:
|
|
47
|
+
return hashlib_new_method(name, data=data, usedforsecurity=usedforsecurity)
|
|
48
|
+
except TypeError:
|
|
49
|
+
# Required for python 3.8
|
|
50
|
+
return hashlib_new_method(name, data=data)
|
|
46
51
|
|
|
47
52
|
|
|
48
53
|
# Monkey-patch md4 in hashlib.new due to missing support for md4 in later releases of Python:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|