Merge pull request #1048 from me2d09/patch-1

Fix deprecated function readfp
This commit is contained in:
Martin Bubel 2023-12-18 08:36:17 +01:00 committed by GitHub
commit e3876e8f55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: