summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-03-14 13:38:41 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2019-03-14 16:43:36 +0100
commit709fd86e86fb2c033e2f1d81bca76208dbba05a7 (patch)
tree2aef97bf503d7291745e5409416159940ce82476 /setup.py
parent329c941fb4057875c3cb456e5eb144afb45105eb (diff)
Refactor and optimize type parsing a bit
Have BOOL/TRISTATE/... match _T_BOOL/_T_TRISTATE/... so that _set_type() doesn't have to do any conversion in the common case. Conversion is still needed for _T_DEF_BOOL/_T_DEF_TRISTATE/..., but those are rare. Also make use of UNKNOWN being falsy. Piggyback some rearranging of global constants so that related stuff appears closer together, for readability.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions