We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96c13a5 commit 30aa693Copy full SHA for 30aa693
versioneer.py
@@ -333,9 +333,8 @@ def get_config_from_root(root):
333
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
334
# the top of versioneer.py for instructions on writing your setup.cfg .
335
setup_cfg = os.path.join(root, "setup.cfg")
336
- parser = configparser.SafeConfigParser()
337
- with open(setup_cfg) as f:
338
- parser.readfp(f)
+ parser = configparser.ConfigParser()
+ parser.readfp(setup_cfg)
339
VCS = parser.get("versioneer", "VCS") # mandatory
340
341
def get(parser, name):
0 commit comments