mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
17 lines
290 B
Python
17 lines
290 B
Python
|
def deco1(func):
|
||
|
"""docstring for deco1"""
|
||
|
def wrapper():
|
||
|
return func()
|
||
|
|
||
|
return wrapper
|
||
|
|
||
|
|
||
|
def deco2(condition, message):
|
||
|
"""docstring for deco2"""
|
||
|
def decorator(func):
|
||
|
def wrapper():
|
||
|
return func()
|
||
|
|
||
|
return wrapper
|
||
|
return decorator
|