# lane, and cycle provided (INVALID)
if tile is None and cycle is not None:
msg = "Handling of cycle without tile is not currently implemented."
- raise ValueError, msg
+ raise ValueError(msg)
# lane, tile, cycle provided
elif cycle:
"""
firecrest = self.status['firecrest']
total = len(firecrest)
- completed = firecrest.values().count(True)
+ completed = list(firecrest.values()).count(True)
return (completed, total)
"""
bustard = self.status['bustard']
total = len(bustard)
- completed = bustard.values().count(True)
+ completed = list(bustard.values()).count(True)
return (completed, total)
"""
gerald = self.status['gerald']
total = len(gerald)
- completed = gerald.values().count(True)
+ completed = list(gerald.values()).count(True)
return (completed, total)
while 1:
if conf_info.status is None:
- print "No status object yet."
+ print("No status object yet.")
time.sleep(SLEEP_AMOUNT)
continue
report = conf_info.status.statusReport()
- print os.linesep.join(report)
- print
+ print(os.linesep.join(report))
+ print()
time.sleep(SLEEP_AMOUNT)
parser.error("need name of configuration file")
status = GARunStatus(args[0])
- print os.linesep.join(status.statusReport())
+ print(os.linesep.join(status.statusReport()))
return 0
if __name__ == "__main__":