浏览代码

autoping and autoreconnect for site connections

tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
d8ab0f3539
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      earwigbot/wiki/site.py

+ 6
- 0
earwigbot/wiki/site.py 查看文件

@@ -513,6 +513,12 @@ class Site(object):
if "read_default_file" not in args and "user" not in args and "passwd" not in args:
args["read_default_file"] = expanduser("~/.my.cnf")

if "autoping" not in args:
args["autoping"] = True

if "autoreconnect" not in args:
args["autoreconnect"] = True

self._sql_conn = oursql.connect(**args)

def name(self):


正在加载...
取消
保存