summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Compat.py')
-rw-r--r--src/lib/Bcfg2/Compat.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Compat.py b/src/lib/Bcfg2/Compat.py
index 9cd8a5531..4daba5b8c 100644
--- a/src/lib/Bcfg2/Compat.py
+++ b/src/lib/Bcfg2/Compat.py
@@ -249,3 +249,9 @@ try:
except ImportError:
import simplejson as json
+
+try:
+ from functools import wraps
+except ImportError:
+ def wraps(wrapped):
+ return lambda f: f