Revision 7b3cbe02
ID | 7b3cbe023e45573f9852fd1a774a0fc9d4d51b5d |
Fix convert-constants handling of booleans
It turns out that, in Python, booleans are also integers. So they fall
under the “isinstance(value, int)” case, resulting in all enable*
constants being integers in Haskell, which is not nice, even though
we're not using them directly today.
Patch simply adds a special casing for booleans, before integers.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Files
- added
- modified
- copied
- renamed
- deleted