format.
"""
-import ConfigParser
+import configparser
import datetime
import re
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)
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):