mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
Fix deprecated function readfp
Since Python 3.2 function readfp is replaced with read_file: https://docs.python.org/3.12/library/configparser.html#configparser.ConfigParser.read_file Readfp was fully removed in Python 3.12 so this fix is needed.
This commit is contained in:
parent
328312f342
commit
0b501808d4
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ home = os.getenv('HOME') or os.getenv('USERPROFILE') or ''
|
|||
user_file = os.path.join(home,'.config','GPy', 'user.cfg')
|
||||
|
||||
# Read in the given files.
|
||||
config.readfp(open(default_file))
|
||||
config.read_file(open(default_file))
|
||||
config.read([local_file, user_file])
|
||||
|
||||
if not config:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue