diff options
author | BonfaceKilz | 2021-10-28 10:57:17 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-10-28 11:10:21 +0300 |
commit | 230184bf1484ed672bf66c29110bcb47e556f72f (patch) | |
tree | 6538e0231272eb9cf47fe523c41f0a6d821e3382 /wqflask/utility | |
parent | 67d71753259e3466b5672c759f22a105c8b653ef (diff) | |
download | genenetwork2-230184bf1484ed672bf66c29110bcb47e556f72f.tar.gz |
Remove the use of '@deprecated'
This causes noisy logging.
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/authentication_tools.py | 2 | ||||
-rw-r--r-- | wqflask/utility/hmac.py | 3 | ||||
-rw-r--r-- | wqflask/utility/redis_tools.py | 2 |
3 files changed, 0 insertions, 7 deletions
diff --git a/wqflask/utility/authentication_tools.py b/wqflask/utility/authentication_tools.py index c4801c8c..afea69e1 100644 --- a/wqflask/utility/authentication_tools.py +++ b/wqflask/utility/authentication_tools.py @@ -1,7 +1,6 @@ import json import requests -from deprecated import deprecated from flask import g from base import webqtlConfig @@ -127,7 +126,6 @@ def check_owner(dataset=None, trait_id=None, resource_id=None): return False -@deprecated def check_owner_or_admin(dataset=None, trait_id=None, resource_id=None): if not resource_id: if dataset.type == "Temp": diff --git a/wqflask/utility/hmac.py b/wqflask/utility/hmac.py index d6e515ed..29891677 100644 --- a/wqflask/utility/hmac.py +++ b/wqflask/utility/hmac.py @@ -1,14 +1,11 @@ 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""" diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py index c2a3b057..a6c5875f 100644 --- a/wqflask/utility/redis_tools.py +++ b/wqflask/utility/redis_tools.py @@ -4,7 +4,6 @@ import datetime import redis # used for collections -from deprecated import deprecated from utility.hmac import hmac_creation from utility.logger import getLogger logger = getLogger(__name__) @@ -252,7 +251,6 @@ def get_resource_id(dataset, trait_id=None): return resource_id -@deprecated def get_resource_info(resource_id): resource_info = Redis.hget("resources", resource_id) if resource_info: |