There was an error while loading. Please reload this page.
1 parent 79b2415 commit 38e579cCopy full SHA for 38e579c
1 file changed
Modules/_csv.c
@@ -368,14 +368,14 @@ dialect_init_special_chars_cache(DialectObj *self)
368
}
369
370
/* Whether the character needs quoting or escaping by the writer. */
371
-static inline int
+static inline bool
372
dialect_is_special_char(DialectObj *self, Py_UCS4 c)
373
{
374
if (c < 128) {
375
return (self->special_chars[c / 64] >> (c % 64)) & 1;
376
377
if (!self->nonascii_special) {
378
- return 0;
+ return false;
379
380
return (c == self->delimiter ||
381
c == self->quotechar ||
0 commit comments