summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-08-31 14:41:40 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-08-31 14:41:40 +0000
commit760749e0f568a93656be50f8c65a48f32e6a35b4 (patch)
tree7d051370d07f5fd96eb16273d3d47fb91f283d4d
parente8da8fbf0a51c20973cbf0113a543aeab41a94e0 (diff)
downloadbcfg2-760749e0f568a93656be50f8c65a48f32e6a35b4.tar.gz
bcfg2-760749e0f568a93656be50f8c65a48f32e6a35b4.tar.bz2
bcfg2-760749e0f568a93656be50f8c65a48f32e6a35b4.zip
remove code duplication
(Logical change 1.45) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@274 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Core.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 09dd1d086..4d2a02fa6 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -16,7 +16,7 @@ class PublishError(Exception):
pass
class fam(object):
- '''The fam object contains alteration monitors'''
+ '''The fam object is a set of callbacks for file alteration events'''
def __init__(self):
self.fm = _fam.open()
@@ -30,10 +30,9 @@ class fam(object):
m = stat(path)[ST_MODE]
if S_ISDIR(m):
h = self.fm.monitorDirectory(path, None)
- self.handles[h.requestID()] = h
else:
h = self.fm.monitorFile(path, None)
- self.handles[h.requestID()] = h
+ self.handles[h.requestID()] = h
if obj != None:
self.users[h.requestID()] = obj
return h.requestID()