Skip to content
Permalink
Browse files

configparser deprecated readfp() for read_file()

sloth.py:303: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  config.readfp(fp)
  • Loading branch information...
illwieckz committed Jul 31, 2019
1 parent 070394f commit 1cdcfc3e319fa0269a3fb067ce3186f81fc19a44
Showing with 1 addition and 1 deletion.
  1. +1 −1 sloth.py
@@ -308,7 +308,7 @@ def __parseSlothFile(self, shader, path):
config.read_string(path.read())
else:
with open(path, "r") as fp:
config.readfp(fp)
config.read_file(fp)
except IOError:
self.error("Couldn't read "+path+".")
return

0 comments on commit 1cdcfc3

Please sign in to comment.
You can’t perform that action at this time.