aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/coredata.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-01-29 23:20:45 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-01-31 20:12:21 +0530
commita683fc30abc976e453a94074f53940bb5ef200e4 (patch)
tree39a19a603b0bd49352a98dee1ee497e7237f40de /mesonbuild/coredata.py
parentd28b75a500e0478deea0a4089c2d4bd334f197c8 (diff)
downloadmeson-a683fc30abc976e453a94074f53940bb5ef200e4.zip
meson-a683fc30abc976e453a94074f53940bb5ef200e4.tar.gz
meson-a683fc30abc976e453a94074f53940bb5ef200e4.tar.bz2
Use ConfigParser instead of deprecated SafeConfigParser
Fixes this annoying warning while running the tests: mesonbuild/coredata.py:237: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r--mesonbuild/coredata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index 9850722..b2b9e91 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -234,7 +234,7 @@ def load_configs(filenames):
raise MesonException('Cannot find specified native file: ' + f)
- config = configparser.SafeConfigParser()
+ config = configparser.ConfigParser()
config.read(gen())
return config