From 2bb2e78488fe2d27b1ecce8e6d696dc67f65daac Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 23 Nov 2008 19:02:10 +0100 Subject: [PATCH] 2.4 compatibility fix. --- tests/util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/util.py b/tests/util.py index fffdcce19..c4c535922 100644 --- a/tests/util.py +++ b/tests/util.py @@ -13,7 +13,11 @@ import StringIO import tempfile import shutil -from functools import wraps +try: + from functools import wraps +except ImportError: + # functools is new in 2.4 + wraps = lambda f: (lambda w: w) from sphinx import application, builder