File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Version 1.8.4
1717
18182 . Updated travis setup to python 3.6 for OS X.
1919
20+ * Fix deprecation warnings thrown by ``` ConfigParser ``` when using pygccxml
21+ with python 2.7.13.
22+
2023Version 1.8.3
2124-------------
2225
Original file line number Diff line number Diff line change 1313import platform
1414import subprocess
1515import warnings
16+ # In py3, ConfigParser was renamed to the more-standard configparser.
17+ # But there's a py3 backport that installs "configparser" in py2, and I don't
18+ # want it because it has annoying deprecation warnings. So try the real py2
19+ # import first
20+ # Inspired by https://bitbucket.org/ned/coveragepy/commits/f8e9d62f1412
1621try :
17- from configparser import ConfigParser
18- except ImportError :
1922 from ConfigParser import SafeConfigParser as ConfigParser
23+ except ImportError :
24+ from configparser import ConfigParser
2025from .. import utils
2126
2227
You can’t perform that action at this time.
0 commit comments