Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def ev_to_str(ev):
if (ev == sr.SR_EV_CHANGE):
return "change"
elif (ev == sr.SR_EV_DONE):
return "done"
elif (ev == sr.SR_EV_ABORT):
return "abort"
else:
return "abort"