|
@@ -227,7 +227,7 @@ def parse_config(config):
|
|
def load_rules(filename):
|
|
def load_rules(filename):
|
|
config = configparser.RawConfigParser()
|
|
config = configparser.RawConfigParser()
|
|
with open(filename, 'rt') as f:
|
|
with open(filename, 'rt') as f:
|
|
- config.readfp(f, filename)
|
|
|
|
|
|
+ config.read_file(f, filename)
|
|
return parse_config(config)
|
|
return parse_config(config)
|
|
|
|
|
|
def open_socket(path):
|
|
def open_socket(path):
|