mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2024-08-09 Fred Gleason <fredg@paravelsystems.com>
Modified the 'PyPAD' Python module to use 'configparser.read_file()' instead of 'configparser.readfp()'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -818,7 +818,7 @@ class Receiver(object):
|
||||
|
||||
def __getDbCredentials(self):
|
||||
config=configparser.ConfigParser()
|
||||
config.readfp(open('/etc/rd.conf'))
|
||||
config.read_file(open('/etc/rd.conf'))
|
||||
return (config.get('mySQL','Loginname'),config.get('mySQL','Password'),
|
||||
config.get('mySQL','Hostname'),config.get('mySQL','Database'))
|
||||
|
||||
@@ -925,7 +925,7 @@ class Receiver(object):
|
||||
|
||||
# Open rd.conf(5)
|
||||
rd_config=configparser.ConfigParser(interpolation=None)
|
||||
rd_config.readfp(open('/etc/rd.conf'))
|
||||
rd_config.read_file(open('/etc/rd.conf'))
|
||||
|
||||
# Open the syslog
|
||||
pypad_name=sys.argv[0].split('/')[-1]
|
||||
|
Reference in New Issue
Block a user