From 52672a64cc0cab4ea14a4a756fce850eb03315e3 Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Thu, 26 Sep 2019 09:56:42 -0400 Subject: Retire github mirror, repo moved to opendev --- migrate/versioning/cfgparse.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 migrate/versioning/cfgparse.py (limited to 'migrate/versioning/cfgparse.py') diff --git a/migrate/versioning/cfgparse.py b/migrate/versioning/cfgparse.py deleted file mode 100644 index 8f1ccf9..0000000 --- a/migrate/versioning/cfgparse.py +++ /dev/null @@ -1,27 +0,0 @@ -""" - Configuration parser module. -""" - -from six.moves.configparser import ConfigParser - -from migrate.versioning.config import * -from migrate.versioning import pathed - - -class Parser(ConfigParser): - """A project configuration file.""" - - def to_dict(self, sections=None): - """It's easier to access config values like dictionaries""" - return self._sections - - -class Config(pathed.Pathed, Parser): - """Configuration class.""" - - def __init__(self, path, *p, **k): - """Confirm the config file exists; read it.""" - self.require_found(path) - pathed.Pathed.__init__(self, path) - Parser.__init__(self, *p, **k) - self.read(path) -- cgit v1.2.1