Use ConfigParser instead of SafeConfigParser

The SafeConfigParser class has been renamed to ConfigParser in Python
3.2. This alias will be removed in future versions.So we can use
ConfigParser directly instead.

Change-Id: Ie0292271229ee77d1bc57dd897ebbbb3d3c059aa
Closes-Bug: #1618666
This commit is contained in:
Pallavi 2016-09-14 10:27:02 +05:30 committed by Alistair Coles
parent 5eb0f3debc
commit b6cf56deb9
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class TestFunctional(unittest.TestCase):
def _get_config(self):
config_file = os.environ.get('SWIFT_TEST_CONFIG_FILE',
'/etc/swift/test.conf')
config = configparser.SafeConfigParser({'auth_version': '1'})
config = configparser.ConfigParser({'auth_version': '1'})
config.read(config_file)
self.config = config
if config.has_section('func_test'):