File: five_second.py

package info (click to toggle)
python-ruffus 2.6.3%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,828 kB
  • ctags: 2,843
  • sloc: python: 15,745; makefile: 180; sh: 14
file content (17 lines) | stat: -rwxr-xr-x 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
from time import sleep
import random
import sys

try:
    for i in range(50):
        sleep(1)
        #if random.randint(5) == 4:
        #    print >> sys.stderr,  "Throw"
        #    raise Exception("WWWWW")
        print >> sys.stderr, i,
    sleep(1)
    print >> sys.stderr,  "Done"
except:
    print >> sys.stderr,  "Exception!!!!!!!!!!!!!!!!!!!!!"
    pass