summaryrefslogtreecommitdiff
path: root/cgi-bin/connect.py
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-13 21:53:49 +0800
committerchai <chaifix@163.com>2018-07-13 21:53:49 +0800
commit7ca80e57f06922e464626c7a6a1d7965e716b53f (patch)
treebda9271234720424b7dfc5c2d25b9df4ba3d01df /cgi-bin/connect.py
parent181b206863d3765fe5343ceea8e1e00e52ffba9e (diff)
Diffstat (limited to 'cgi-bin/connect.py')
-rw-r--r--cgi-bin/connect.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/cgi-bin/connect.py b/cgi-bin/connect.py
deleted file mode 100644
index 09c1942..0000000
--- a/cgi-bin/connect.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import pymysql
-import config
-from config import Config
-
-host = Config.get("database", "host")
-port = Config.get("database", "port")
-user = Config.get("database", "user")
-passwd = Config.get("database", "passwd")
-db = Config.get("database", "db")
-class Connect(object):
- def produce():
- return pymysql.connect(host, user, passwd, db)
-