mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
2.4 compatibility fix.
This commit is contained in:
parent
b29b72833f
commit
2bb2e78488
@ -13,7 +13,11 @@ import StringIO
|
|||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
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
|
from sphinx import application, builder
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user