diff options
author | 2007-12-24 04:52:50 -0800 | |
---|---|---|
committer | 2007-12-24 04:52:50 -0800 | |
commit | 3686ec336778dd144fbe063ededdde09b32d84cc (patch) | |
tree | 9ba42d1822f62bd8479594de89f2fa628fc63e99 | |
parent | Use a custom RawConfigParser config implementation, with a special order for ... (diff) | |
download | gitosis-gentoo-3686ec336778dd144fbe063ededdde09b32d84cc.tar.gz gitosis-gentoo-3686ec336778dd144fbe063ededdde09b32d84cc.tar.bz2 gitosis-gentoo-3686ec336778dd144fbe063ededdde09b32d84cc.zip |
Use the new GitosisRawConfigParser.
-rw-r--r-- | gitosis/app.py | 3 | ||||
-rw-r--r-- | gitosis/init.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gitosis/app.py b/gitosis/app.py index 3037923..b2c44be 100644 --- a/gitosis/app.py +++ b/gitosis/app.py @@ -5,6 +5,7 @@ import logging import optparse import errno import ConfigParser +from gitosis import configutil # C0103 - 'log' is a special name # pylint: disable-msg=C0103 @@ -68,7 +69,7 @@ class App(object): def create_config(self, options): """Handle config file parsing.""" - cfg = ConfigParser.RawConfigParser() + cfg = configutil.GitosisRawConfigParser() return cfg def read_config(self, options, cfg): diff --git a/gitosis/init.py b/gitosis/init.py index 0162be4..91b9f18 100644 --- a/gitosis/init.py +++ b/gitosis/init.py @@ -8,8 +8,8 @@ import sys from pkg_resources import resource_filename from cStringIO import StringIO -from ConfigParser import RawConfigParser +from gitosis import configutil from gitosis import repository from gitosis import run_hook from gitosis import sshkey @@ -69,7 +69,7 @@ def init_admin_repository(git_dir, pubkey, user, config): config.has_option('group gitosis-admin', 'writable'): pass else: - config = RawConfigParser() + config = configutil.GitosisRawConfigParser() config.add_section('gitosis') config.add_section('group gitosis-admin') config.set('group gitosis-admin', 'members', user) |