| |
@@ -55,6 +55,12 @@
|
| |
gi.require_version('Modulemd', '1.0') # raises ValueError
|
| |
from gi.repository import Modulemd # noqa
|
| |
|
| |
+ if six.PY2:
|
| |
+ ConfigParser = configparser.SafeConfigParser
|
| |
+ else:
|
| |
+ # The SafeConfigParser class has been renamed to ConfigParser in Python 3.2.
|
| |
+ ConfigParser = configparser.ConfigParser
|
| |
+
|
| |
|
| |
class NullHandler(logging.Handler):
|
| |
"""Null logger to avoid spurious messages, add a handler in app code"""
|
| |
@@ -3011,7 +3017,7 @@
|
| |
|
| |
def container_build_setup(self, get_autorebuild=None,
|
| |
set_autorebuild=None):
|
| |
- cfp = configparser.SafeConfigParser()
|
| |
+ cfp = ConfigParser()
|
| |
if os.path.exists(self.osbs_config_filename):
|
| |
cfp.read(self.osbs_config_filename)
|
| |
|
| |
This PR silences the following warning: