def doctest_depends_on(exe=None, modules=None, disable_viewers=None):
 pyglet = False
 if ((modules is not None) and ('pyglet' in modules)):
  pyglet = True
 def depends_on_deco(fn):
  fn._doctest_depends_on = dict(exe=exe, modules=modules, disable_viewers=disable_viewers, pyglet=pyglet)
  if inspect.isclass(fn):
   fn._doctest_depdends_on = no_attrs_in_subclass(fn, fn._doctest_depends_on)
  return fn
 return depends_on_deco

def doctest_depends_on ( exe = None , modules = None , disable_viewers = None ) : pyglet = False if ( ( modules is not None ) and ( 'pyglet' in modules ) ) : pyglet = True def depends_on_deco ( fn ) : fn . _doctest_depends_on = dict ( exe = exe , modules = modules , disable_viewers = disable_viewers , pyglet = pyglet ) if inspect . isclass ( fn ) : fn . _doctest_depdends_on = no_attrs_in_subclass ( fn , fn . _doctest_depends_on ) return fn return depends_on_deco
adds metadata about the depenencies which need to be met for doctesting the docstrings of the decorated objects .