mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
Merge pull request #1048 from me2d09/patch-1
Fix deprecated function readfp
This commit is contained in:
commit
e3876e8f55
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