summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-07-30 16:08:59 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-07-30 16:08:59 -0500
commit211864073d9254f9d116ee052092f1949775f544 (patch)
tree05c7ac982f2b89551fc92f2ab4b7482b516f9829 /src/lib/Bcfg2/Server
parentf9b6982372833351ea430c10e286d7c7f050ddff (diff)
downloadbcfg2-211864073d9254f9d116ee052092f1949775f544.tar.gz
bcfg2-211864073d9254f9d116ee052092f1949775f544.tar.bz2
bcfg2-211864073d9254f9d116ee052092f1949775f544.zip
Inotify: Use functools where reduce is unavailable
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server')
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Inotify.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
index 7362432b8..880ac7e8d 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
@@ -1,10 +1,11 @@
""" Inotify driver for file alteration events """
-import os
-import sys
import logging
import operator
+import os
import pyinotify
+import sys
+from Bcfg2.Bcfg2Py3k import reduce
from Bcfg2.Server.FileMonitor import Event
from Bcfg2.Server.FileMonitor.Pseudo import Pseudo