1. Luke Plant
  2. sphinx

Commits

gbrandl  committed f2678b1

2.4 compatibility fix.

  • Participants
  • Parent commits 232be02
  • Branches default

Comments (0)

Files changed (1)

File tests/util.py

View file
  • Ignore whitespace
 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