From 270a8a33ba8509aa44e38c0190870fb9fe391374 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 9 Jun 2014 11:30:30 -0700 Subject: [PATCH] Make intentions a tuple (to denote immutability) Since the atom intentions are not meant to be mutable we should make sure that we create the object as a type which is not mutable. This helps with those looking over the code to understand its desired usage which is not to be a mutable collection. Change-Id: I84948faf2e6bd8f4b4a9b27e390c9a03a14efa4b --- taskflow/states.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskflow/states.py b/taskflow/states.py index 963e4f64..500d6fef 100644 --- a/taskflow/states.py +++ b/taskflow/states.py @@ -46,7 +46,7 @@ EXECUTE = 'EXECUTE' IGNORE = 'IGNORE' REVERT = 'REVERT' RETRY = 'RETRY' -INTENTIONS = [EXECUTE, IGNORE, REVERT, RETRY] +INTENTIONS = (EXECUTE, IGNORE, REVERT, RETRY) # Additional engine states SCHEDULING = 'SCHEDULING'