We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7bd6a9 + 28a4183 commit 122512aCopy full SHA for 122512a
1 file changed
versioneer.py
@@ -344,9 +344,8 @@ def get_config_from_root(root):
344
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
345
# the top of versioneer.py for instructions on writing your setup.cfg .
346
setup_cfg = os.path.join(root, "setup.cfg")
347
- parser = configparser.SafeConfigParser()
348
- with open(setup_cfg, "r") as f:
349
- parser.readfp(f)
+ parser = configparser.ConfigParser()
+ parser.read(setup_cfg)
350
VCS = parser.get("versioneer", "VCS") # mandatory
351
352
def get(parser, name):
0 commit comments