Commits

James Mills committed 364b823

Code cleanup with pyflakes

Comments (0)

Files changed (1)

scripts/circuits.bench

 USAGE = "%prog [options]"
 VERSION = "%prog v" + systemVersion
 
-###
-### Functions
-###
 
 def duration(seconds):
     days = int(seconds / 60 / 60 / 24)
     seconds = int((seconds) % (60))
     return (days, hours, mins, seconds)
 
+
 def parse_options():
     """parse_options() -> opts, args
 
 
     return opts, args
 
-###
-### Events
-###
 
 class Stop(Event):
     """Stop Event"""
 
+
 class Term(Event):
     """Term Event"""
 
+
 class Hello(Event):
     """Hello Event"""
 
+
 class Received(Event):
     """Received Event"""
 
-###
-### Components
-###
 
 class Base(Component):
 
 
         self.opts = opts
 
+
 class SpeedTest(Base):
 
     def received(self, message=""):
     def hello(self, message):
         self.fire(Received(message))
 
+
 class LatencyTest(Base):
 
     t = None
         self.t = time()
         self.fire(Received(message))
 
+
 class State(Base):
 
     done = False
 
     def term(self):
         self.done = True
-    
+
+
 class Monitor(Base):
 
     sTime = sys.maxsize
         if self.events > self.opts.events:
             self.stop()
 
-###
-### Main
-###
 
 def main():
     opts, args = parse_options()