aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/hmac.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-15 15:53:07 +0300
committerBonfaceKilz2021-10-25 14:00:14 +0300
commit217fc72eee688aed4409120d964cb2140ce11961 (patch)
treec151f044e73464b77a73dba4e9ddd06e7e3f0b93 /wqflask/utility/hmac.py
parent712318f7ab5e676b229ba0d479be09e9f92b9568 (diff)
downloadgenenetwork2-217fc72eee688aed4409120d964cb2140ce11961.tar.gz
utility.hmac: Label "hmac_creation" as deprecated
This function is coupled to "wqflask.app", therefore requiring it's import at the module level. This may lead circular importation issues when working with blueprints.
Diffstat (limited to 'wqflask/utility/hmac.py')
-rw-r--r--wqflask/utility/hmac.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/utility/hmac.py b/wqflask/utility/hmac.py
index 29891677..d6e515ed 100644
--- a/wqflask/utility/hmac.py
+++ b/wqflask/utility/hmac.py
@@ -1,11 +1,14 @@
import hmac
import hashlib
+from deprecated import deprecated
from flask import url_for
from wqflask import app
+@deprecated("This function leads to circular imports. "
+ "If possible use wqflask.decorators.create_hmac instead.")
def hmac_creation(stringy):
"""Helper function to create the actual hmac"""