mirror of
https://github.com/gryf/wicd.git
synced 2026-03-15 06:03:40 +01:00
Oops. Don't wipe out configuration files :) :/
This commit is contained in:
@@ -37,7 +37,7 @@ def sanitize_config_file(path):
|
|||||||
conf = open(path)
|
conf = open(path)
|
||||||
newconf = ''
|
newconf = ''
|
||||||
for line in conf:
|
for line in conf:
|
||||||
if '[' not in line or '=' not in line:
|
if '[' in line or '=' in line:
|
||||||
newconf += line
|
newconf += line
|
||||||
conf.close()
|
conf.close()
|
||||||
conf = open(path, 'w')
|
conf = open(path, 'w')
|
||||||
|
|||||||
Reference in New Issue
Block a user