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
17
17
18
18
2 . Updated travis setup to python 3.6 for OS X.
19
19
20
+ * Fix deprecation warnings thrown by ``` ConfigParser ``` when using pygccxml
21
+ with python 2.7.13.
22
+
20
23
Version 1.8.3
21
24
-------------
22
25
Original file line number Diff line number Diff line change 13
13
import platform
14
14
import subprocess
15
15
import 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
16
21
try :
17
- from configparser import ConfigParser
18
- except ImportError :
19
22
from ConfigParser import SafeConfigParser as ConfigParser
23
+ except ImportError :
24
+ from configparser import ConfigParser
20
25
from .. import utils
21
26
22
27
You can’t perform that action at this time.
0 commit comments