Source

sphinx / tests / util.py

Diff from to

File tests/util.py

 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