diff --git a/xray.py b/xray.py index 8e51577..c53231e 100644 --- a/xray.py +++ b/xray.py @@ -185,7 +185,7 @@ def load_cfg(reload=False): PATTERN_LIST = [] config = configparser.RawConfigParser() - config.readfp(open(cfg_file)) + config.read_file(open(cfg_file)) # read all sections for section in config.sections():