as SafeConfigParser was renamed to ConfigParser in Python3 and in
Python2 backport of configparser module, so let's just use the latter.
Signed-off-by: Kefu Chai <kchai@redhat.com>
-try:
- import configparser
-except ImportError:
- import ConfigParser as configparser
+import configparser
import logging
import os
from os import path
return args
-class Conf(configparser.SafeConfigParser):
+class Conf(configparser.ConfigParser):
"""
- Subclasses from SafeConfigParser to give a few helpers for the ceph-deploy
+ Subclasses from ConfigParser to give a few helpers for the ceph-deploy
configuration. Specifically, it addresses the need to work with custom
sections that signal the usage of custom repositories.
"""
pyversion = sys.version_info[:2]
if pyversion < (2, 7) or (3, 0) <= pyversion <= (3, 1):
install_requires.append('argparse')
-if pyversion < (3, 0):
- install_requires.append('configparser')
setup(
name='ceph-deploy',