def print_dots(current, total, start=False, end=False):
 if SHUTDOWN_EVENT.isSet():
  return
 sys.stdout.write('.')
 if (((current + 1) == total) and (end is True)):
  sys.stdout.write('\n')
 sys.stdout.flush()

def print_dots ( current , total , start = False , end = False ) : if SHUTDOWN_EVENT . isSet ( ) : return sys . stdout . write ( '.' ) if ( ( ( current + 1 ) == total ) and ( end is True ) ) : sys . stdout . write ( '\n' ) sys . stdout . flush ( )
built in callback function used by thread classes for printing status .