We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f724362 commit a412102Copy full SHA for a412102
versioneer.py
@@ -409,9 +409,8 @@ def get_config_from_root(root):
409
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
410
# the top of versioneer.py for instructions on writing your setup.cfg .
411
setup_cfg = os.path.join(root, "setup.cfg")
412
- parser = configparser.SafeConfigParser()
413
- with open(setup_cfg, "r") as f:
414
- parser.readfp(f)
+ parser = configparser.ConfigParser()
+ parser.read(setup_cfg)
415
VCS = parser.get("versioneer", "VCS") # mandatory
416
417
def get(parser, name):
0 commit comments