X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Fconfig.py;h=32c20da41c3fe9acb6e4775e4aae2512b4900a98;hp=cf721bf6bd47304f1e1c7f38efc1cb0e1408015f;hb=a5f66616b1ec0c38328ad5131bf1c889ccc43659;hpb=5b69b1ec0eeba473dfd2c40de41075a49a147e93 diff --git a/python/cumulus/config.py b/python/cumulus/config.py index cf721bf..32c20da 100644 --- a/python/cumulus/config.py +++ b/python/cumulus/config.py @@ -22,7 +22,7 @@ See the Cumulus documentation for a description of the configuration file format. """ -import ConfigParser +import configparser import datetime import re @@ -41,7 +41,7 @@ def _build_retention_engine(spec): for s in spec.split(): m = class_re.match(s) if not m: - print "Invalid retain spec:", s + print("Invalid retain spec:", s) continue period = datetime.timedelta() classname = m.group(1) @@ -58,7 +58,7 @@ def _build_retention_engine(spec): class CumulusConfig(object): def __init__(self, filename): """Parse a Cumulus backup configuration from the specified file.""" - self._config = ConfigParser.RawConfigParser() + self._config = configparser.RawConfigParser() self._config.readfp(open(filename)) def get_global(self, key):