Commits

Anonymous committed f2678b1

2.4 compatibility fix.

Comments (0)

Files changed (1)

 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