def doctest(*paths, **kwargs):
 subprocess = kwargs.pop('subprocess', True)
 rerun = kwargs.pop('rerun', 0)
 print_counter = (lambda i: (print(('rerun %d' % (rerun - i))) if (rerun - i) else None))
 if subprocess:
  for i in range(rerun, (-1), (-1)):
   print_counter(i)
   ret = run_in_subprocess_with_hash_randomization('_doctest', function_args=paths, function_kwargs=kwargs)
   if (ret is False):
    break
   val = (not bool(ret))
   if ((not val) or (i == 0)):
    return val
 for i in range(rerun, (-1), (-1)):
  print_counter(i)
  val = (not bool(_doctest(*paths, **kwargs)))
  if ((not val) or (i == 0)):
   return val

def doctest ( * paths , ** kwargs ) : subprocess = kwargs . pop ( 'subprocess' , True ) rerun = kwargs . pop ( 'rerun' , 0 ) print_counter = ( lambda i : ( print ( ( 'rerun %d' % ( rerun - i ) ) ) if ( rerun - i ) else None ) ) if subprocess : for i in range ( rerun , ( - 1 ) , ( - 1 ) ) : print_counter ( i ) ret = run_in_subprocess_with_hash_randomization ( '_doctest' , function_args = paths , function_kwargs = kwargs ) if ( ret is False ) : break val = ( not bool ( ret ) ) if ( ( not val ) or ( i == 0 ) ) : return val for i in range ( rerun , ( - 1 ) , ( - 1 ) ) : print_counter ( i ) val = ( not bool ( _doctest ( * paths , ** kwargs ) ) ) if ( ( not val ) or ( i == 0 ) ) : return val
execute sphinx doctest target .