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
This commit is contained in:
Joshua Harlow
2014-06-09 11:30:30 -07:00
committed by Joshua Harlow
parent 6f9448001c
commit 270a8a33ba

View File

@@ -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'