summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Base.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-04-26 15:18:04 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-04-26 15:18:04 -0500
commitbef2d0c73eb0b3fd071f616aa43a945ae2d103b7 (patch)
tree6b7442075da3d88d649ac9cbe82d6007558e7c8f /src/lib/Server/Plugins/Base.py
parent944df5470f9d30717baccf7b716fd4847b31da27 (diff)
downloadbcfg2-bef2d0c73eb0b3fd071f616aa43a945ae2d103b7.tar.gz
bcfg2-bef2d0c73eb0b3fd071f616aa43a945ae2d103b7.tar.bz2
bcfg2-bef2d0c73eb0b3fd071f616aa43a945ae2d103b7.zip
Plugins: Add full PY3K compatibility
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Server/Plugins/Base.py')
-rw-r--r--src/lib/Server/Plugins/Base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Base.py b/src/lib/Server/Plugins/Base.py
index 2b241da9d..5e7d89727 100644
--- a/src/lib/Server/Plugins/Base.py
+++ b/src/lib/Server/Plugins/Base.py
@@ -1,9 +1,14 @@
"""This module sets up a base list of configuration entries."""
__revision__ = '$Revision$'
-import Bcfg2.Server.Plugin
import copy
import lxml.etree
+import sys
+# py3k compatibility
+if sys.hexversion >= 0x03000000:
+ from functools import reduce
+
+import Bcfg2.Server.Plugin
class Base(Bcfg2.Server.Plugin.Plugin,