Skip to content

Commit 38e579c

Browse files
Make dialect_is_special_char() return bool
1 parent 79b2415 commit 38e579c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_csv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,14 @@ dialect_init_special_chars_cache(DialectObj *self)
368368
}
369369

370370
/* Whether the character needs quoting or escaping by the writer. */
371-
static inline int
371+
static inline bool
372372
dialect_is_special_char(DialectObj *self, Py_UCS4 c)
373373
{
374374
if (c < 128) {
375375
return (self->special_chars[c / 64] >> (c % 64)) & 1;
376376
}
377377
if (!self->nonascii_special) {
378-
return 0;
378+
return false;
379379
}
380380
return (c == self->delimiter ||
381381
c == self->quotechar ||

0 commit comments

Comments
 (0)