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.
authorLaurent Peuch <cortex@worlddomination.be>
Wed, 08 May 2019 21:00:45 +0200
changeset 12587 6b08ba99b40e
parent 12585 933c2b3839ab
child 12588 fa292e905edc
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.
cubicweb/pyramid/__init__.py
--- a/cubicweb/pyramid/__init__.py	Fri Apr 12 02:26:28 2019 +0200
+++ b/cubicweb/pyramid/__init__.py	Wed May 08 21:00:45 2019 +0200
@@ -21,7 +21,7 @@
 """Pyramid interface to CubicWeb"""
 
 import atexit
-from configparser import SafeConfigParser
+from configparser import ConfigParser
 import os
 import warnings
 
@@ -72,7 +72,7 @@
 
     for fname in settings_filenames:
         if os.path.exists(fname):
-            cp = SafeConfigParser()
+            cp = ConfigParser()
             cp.read(fname)
             settings.update(cp.items('main'))
             break