diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-15 05:58:36 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-18 01:12:21 -0800 |
commit | 204c2e0781ce89fd8abb7f1249920ce90414f9f6 (patch) | |
tree | 08ccb761125a0276ae1c88037a59488a89e67ed6 /gitosis/gitdaemon.py | |
parent | Pylint cleanups for run_hook.py. (diff) | |
download | gitosis-dakkar-204c2e0781ce89fd8abb7f1249920ce90414f9f6.tar.gz gitosis-dakkar-204c2e0781ce89fd8abb7f1249920ce90414f9f6.tar.bz2 gitosis-dakkar-204c2e0781ce89fd8abb7f1249920ce90414f9f6.zip |
Factor out functions with a common errno ignore block.
Diffstat (limited to 'gitosis/gitdaemon.py')
-rw-r--r-- | gitosis/gitdaemon.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gitosis/gitdaemon.py b/gitosis/gitdaemon.py index e1e0e9a..e529302 100644 --- a/gitosis/gitdaemon.py +++ b/gitosis/gitdaemon.py @@ -30,13 +30,7 @@ def allow_export(repopath): def deny_export(repopath): """Remove the ``git-daemon-export-ok`` marker for a given repository.""" path = export_ok_path(repopath) - try: - os.unlink(path) - except OSError, ex: - if ex.errno == errno.ENOENT: - pass - else: - raise + util.unlink(path) def _extract_reldir(topdir, dirpath): """ |