aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-12-15 05:51:20 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2007-12-18 01:12:21 -0800
commit3cd02b7ee3de6576c2a69d52065c66854dbdf0b5 (patch)
treece92f5b9b6c5fb48a3ee9cbd2bdbfb233aba93c3
parentPylint cleanup of repository.py incl refactor to util.mkdir. (diff)
downloadgitosis-dakkar-3cd02b7ee3de6576c2a69d52065c66854dbdf0b5.tar.gz
gitosis-dakkar-3cd02b7ee3de6576c2a69d52065c66854dbdf0b5.tar.bz2
gitosis-dakkar-3cd02b7ee3de6576c2a69d52065c66854dbdf0b5.zip
Pylint cleanups again.
-rw-r--r--gitosis/gitdaemon.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gitosis/gitdaemon.py b/gitosis/gitdaemon.py
index 86c8a1a..e1e0e9a 100644
--- a/gitosis/gitdaemon.py
+++ b/gitosis/gitdaemon.py
@@ -8,8 +8,6 @@ import errno
import logging
import os
-from ConfigParser import NoSectionError, NoOptionError
-
# C0103 - 'log' is a special name
# pylint: disable-msg=C0103
log = logging.getLogger('gitosis.gitdaemon')
@@ -55,7 +53,7 @@ def _is_global_repo_export_ok(config):
"""
Does the global Gitosis configuration allow daemon exporting?
"""
- global_enable = getboolean_default(config, 'gitosis', 'daemon', False)
+ global_enable = getboolean_default(config, 'gitosis', 'daemon', False)
log.debug(
'Global default is %r',
{True: 'allow', False: 'deny'}.get(global_enable),
@@ -67,8 +65,8 @@ def _is_repo_export_ok(global_enable, config, reponame):
Does the Gitosis configuration for the named reposistory allow daemon
exporting?
"""
- section = 'repo %s' % reponame
- return getboolean_default(config, section, 'daemon', global_enable)
+ section = 'repo %s' % reponame
+ return getboolean_default(config, section, 'daemon', global_enable)
def _set_export_ok_single(enable, name, dirpath, repo):
"""