We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62aaf2 commit 584af4fCopy full SHA for 584af4f
versioneer.py
@@ -278,9 +278,9 @@
278
279
from __future__ import print_function
280
try:
281
- import configparser
+ from configparser import ConfigParser
282
except ImportError:
283
- import ConfigParser as configparser
+ from ConfigParser import SafeConfigParser as ConfigParser
284
import errno
285
import json
286
import os
@@ -339,7 +339,7 @@ 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()
+ parser = ConfigParser()
343
with open(setup_cfg, "r") as f:
344
parser.readfp(f)
345
VCS = parser.get("versioneer", "VCS") # mandatory
0 commit comments