diff options
author | BonfaceKilz | 2020-08-19 03:45:49 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-08-19 03:45:49 +0300 |
commit | 3aaa28ea762c496eeb84e09e45194e3fd2a51673 (patch) | |
tree | a572b34f4237fefd02eaba12bbe1aeac74d77497 /wqflask/utility/authentication_tools.py | |
parent | 9d5dff44fb4d07f926659dde0c6205bf12a1ca5b (diff) | |
download | genenetwork2-3aaa28ea762c496eeb84e09e45194e3fd2a51673.tar.gz |
Make Python more idiomatic
Run `2to3-3.8 -f idioms -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
Diffstat (limited to 'wqflask/utility/authentication_tools.py')
-rw-r--r-- | wqflask/utility/authentication_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/authentication_tools.py b/wqflask/utility/authentication_tools.py index ece7022c..bc03eb55 100644 --- a/wqflask/utility/authentication_tools.py +++ b/wqflask/utility/authentication_tools.py @@ -17,7 +17,7 @@ logger = logging.getLogger(__name__ ) def check_resource_availability(dataset, trait_id=None): #At least for now assume temporary entered traits are accessible - if type(dataset) == str: + if isinstance(dataset, str): return webqtlConfig.DEFAULT_PRIVILEGES if dataset.type == "Temp": return webqtlConfig.DEFAULT_PRIVILEGES |