Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c1f1f commit 782f44bCopy full SHA for 782f44b
1 file changed
Parser/pegen.c
@@ -525,7 +525,7 @@ _PyPegen_dummy_name(Parser *p, ...)
525
static int
526
_get_keyword_or_name_type(Parser *p, const char *name, int name_len)
527
{
528
- assert(name_len != 0);
+ assert(name_len > 0);
529
if (name_len >= p->n_keyword_lists ||
530
p->keywords[name_len] == NULL ||
531
p->keywords[name_len]->type == -1) {
0 commit comments