Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1""" 

2Sphinx gets confused by :class:`celery.local.PromiseProxy` objects. 

3If running under Sphinx, substitute a dummy class for 

4:class:`~celery.local.PromiseProxy`. 

5""" 

6from .sphinx import SPHINX 

7 

8__all__ = ('PromiseProxy',) 

9 

10if SPHINX: # pragma: no cover 

11 class PromiseProxy: 

12 

13 def __init__(self, *args, **kwargs): 

14 pass 

15else: 

16 from celery.local import PromiseProxy