aboutsummaryrefslogtreecommitdiff
path: root/genotype_files
diff options
context:
space:
mode:
authorPjotr Prins2016-06-23 05:43:46 +0000
committerPjotr Prins2016-06-23 05:43:46 +0000
commit2e8351ee52a67bf7dfee7d323458b3fa80cacf41 (patch)
tree9dc86eebc5d26401da44a1c19181f397fc184f12 /genotype_files
parent968eb8c1d8703c3d5c84f2162eae365b930c008d (diff)
downloadgenenetwork2-2e8351ee52a67bf7dfee7d323458b3fa80cacf41.tar.gz
Add warnings for adding MySQLdb cursor
Diffstat (limited to 'genotype_files')
-rw-r--r--genotype_files/genotype/process.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/genotype_files/genotype/process.py b/genotype_files/genotype/process.py
index 96cbc9b4..112dd83a 100644
--- a/genotype_files/genotype/process.py
+++ b/genotype_files/genotype/process.py
@@ -108,6 +108,7 @@ mysql> select * from Strain order by Id desc limit 5;
try:
#import getpass
#passwd = getpass.getpass('Please enter mysql password here : ')
+ logger.warning("Creating new MySQLdb cursor (this method is OBSOLETE!)")
con = MySQLdb.Connect(db='db_webqtl',user='webqtlupd',passwd='webqtl', host="opteron")
cursor = con.cursor()
print "You have successfully connected to mysql.\n"