We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa97d05 commit 756c026Copy full SHA for 756c026
versioneer.py
@@ -396,9 +396,8 @@ def get_config_from_root(root):
396
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
397
# the top of versioneer.py for instructions on writing your setup.cfg .
398
setup_cfg = os.path.join(root, "setup.cfg")
399
- parser = configparser.SafeConfigParser()
400
- with open(setup_cfg, "r") as f:
401
- parser.readfp(f)
+ parser = configparser.ConfigParser()
+ parser.read(setup_cfg)
402
VCS = parser.get("versioneer", "VCS") # mandatory
403
404
def get(parser, name):
0 commit comments