Skip to content

Commit dcfc30c

Browse files
authored
[libc] Fix hdrgen to be compatible with Python 3.8 (#127265)
1 parent da6ac95 commit dcfc30c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

libc/utils/hdrgen/header.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@
2323
"ptr",
2424
]
2525

26-
COMPILER_HEADER_TYPES = (
27-
{
28-
"bool": "<stdbool.h>",
29-
"va_list": "<stdarg.h>",
30-
}
31-
| {f"int{size}_t": "<stdint.h>" for size in STDINT_SIZES}
32-
| {f"uint{size}_t": "<stdint.h>" for size in STDINT_SIZES}
33-
)
26+
COMPILER_HEADER_TYPES = {
27+
"bool": "<stdbool.h>",
28+
"va_list": "<stdarg.h>",
29+
}
30+
COMPILER_HEADER_TYPES.update({f"int{size}_t": "<stdint.h>" for size in STDINT_SIZES})
31+
COMPILER_HEADER_TYPES.update({f"uint{size}_t": "<stdint.h>" for size in STDINT_SIZES})
3432

3533

3634
class HeaderFile:

0 commit comments

Comments
 (0)