mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-08-27 23:41:14 +00:00
Remove pylint
This commit is contained in:
@@ -66,9 +66,9 @@ def get_dashboard_conf():
|
||||
Get dashboard configuration
|
||||
@return: configparser.ConfigParser
|
||||
"""
|
||||
config = configparser.ConfigParser(strict=False)
|
||||
config.read(DASHBOARD_CONF)
|
||||
return config
|
||||
r_config = configparser.ConfigParser(strict=False)
|
||||
r_config.read(DASHBOARD_CONF)
|
||||
return r_config
|
||||
|
||||
|
||||
def set_dashboard_conf(config):
|
||||
@@ -190,7 +190,7 @@ def read_conf_file(config_name):
|
||||
conf_peer_data["Peers"].append({})
|
||||
elif peer > -1:
|
||||
if len(i) > 0:
|
||||
tmp = re.split('\s*=\s*', i, 1)
|
||||
tmp = re.split(r'\s*=\s*', i, 1)
|
||||
if len(tmp) == 2:
|
||||
conf_peer_data["Peers"][peer][tmp[0]] = tmp[1]
|
||||
|
||||
|
Reference in New Issue
Block a user