We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b521420 commit 432c67dCopy full SHA for 432c67d
versioneer.py
@@ -339,9 +339,8 @@ def get_config_from_root(root):
339
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
340
# the top of versioneer.py for instructions on writing your setup.cfg .
341
setup_cfg = os.path.join(root, "setup.cfg")
342
- parser = configparser.SafeConfigParser()
343
- with open(setup_cfg, "r") as f:
344
- parser.readfp(f)
+ parser = configparser.ConfigParser()
+ parser.read(setup_cfg)
345
VCS = parser.get("versioneer", "VCS") # mandatory
346
347
def get(parser, name):
0 commit comments