aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/py24compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/py24compat.py')
-rw-r--r--setuptools/py24compat.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/py24compat.py b/setuptools/py24compat.py
new file mode 100644
index 00000000..c5d7d204
--- /dev/null
+++ b/setuptools/py24compat.py
@@ -0,0 +1,11 @@
+"""
+Forward-compatibility support for Python 2.4 and earlier
+"""
+
+# from jaraco.compat 1.2
+try:
+ from functools import wraps
+except ImportError:
+ def wraps(func):
+ "Just return the function unwrapped"
+ return lambda x: x