aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/webqtlUtil.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-23 15:28:41 +0300
committerBonfaceKilz2020-08-23 15:28:41 +0300
commit666a423b0b2f8cf98b9e70ed3dcf1c6dc3896b1d (patch)
tree376fc4d30e09cbcfd562a5b7829d856ba40ece17 /wqflask/utility/webqtlUtil.py
parentab78dd757a7d11375e32637158ddcffc029a3113 (diff)
downloadgenenetwork2-666a423b0b2f8cf98b9e70ed3dcf1c6dc3896b1d.tar.gz
Use Python3 string methods
* wqflask/utility/webqtlUtil.py (genRandStr): Replace "string.letters" with "string.ascii_letters".
Diffstat (limited to 'wqflask/utility/webqtlUtil.py')
-rw-r--r--wqflask/utility/webqtlUtil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/webqtlUtil.py b/wqflask/utility/webqtlUtil.py
index 77cc3416..d4979011 100644
--- a/wqflask/utility/webqtlUtil.py
+++ b/wqflask/utility/webqtlUtil.py
@@ -64,7 +64,7 @@ ParInfo ={
# Accessory Functions
#########################################
-def genRandStr(prefix = "", length=8, chars=string.letters+string.digits):
+def genRandStr(prefix = "", length=8, chars=string.ascii_letters+string.digits):
from random import choice
_str = prefix[:]
for i in range(length):
@@ -110,4 +110,4 @@ def hasAccessToConfidentialPhenotypeTrait(privilege, userName, authorized_users)
AuthorizedUsersList=list(map(string.strip, string.split(authorized_users, ',')))
if AuthorizedUsersList.__contains__(userName):
access_to_confidential_phenotype_trait = 1
- return access_to_confidential_phenotype_trait \ No newline at end of file
+ return access_to_confidential_phenotype_trait