(self, secs=5, doing="Starting")
This method is based on Portage's _emerge.countdown
        Copyright 1999-2009 Gentoo Foundation
This method is based on Portage's _emerge.countdown
        Copyright 1999-2009 Gentoo Foundation
This method is based on Portage s _emerge . countdown Copyright 1999 - 2009 Gentoo Foundation
def countdown(self, secs=5, doing="Starting"):
        """ This method is based on Portage's _emerge.countdown
        Copyright 1999-2009 Gentoo Foundation"""
        if secs:
            print("Waiting",secs,"seconds before starting (Control-C to abort)...")
            print(doing+" in: ", end=' ')
            ticks=list(range(secs))
            ticks.reverse()
            for sec in ticks:
                sys.stdout.write(colorize("red", str(sec+1)+" "))
                sys.stdout.flush()
                time.sleep(1)
            print()
def countdown ( self , secs = 5 , doing = "Starting" ) : if secs : print ( "Waiting" , secs , "seconds before starting (Control-C to abort)..." ) print ( doing + " in: " , end = ' ' ) ticks = list ( range ( secs ) ) ticks . reverse ( ) for sec in ticks : sys . stdout . write ( colorize ( "red" , str ( sec + 1 ) + " " ) ) sys . stdout . flush ( ) time . sleep ( 1 ) print ( )