Mercurial > cpython-lru_cache-weakref
comparison Modules/parsermodule.c @ 39698:07eb80264f61
Get rid of some more cases of backquotes. parsermodule.c doesn't compile
but looks like that was a problem before this change.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 29 Aug 2006 04:40:24 +0000 |
| parents | 29ae5e0fc348 |
| children | 7591228151d7 |
comparison
equal
deleted
inserted
replaced
| 39697:ec48057a34b6 | 39698:07eb80264f61 |
|---|---|
| 2402 && validate_ntype(CHILD(tree, nch - 1), RBRACE)); | 2402 && validate_ntype(CHILD(tree, nch - 1), RBRACE)); |
| 2403 | 2403 |
| 2404 if (res && (nch == 3)) | 2404 if (res && (nch == 3)) |
| 2405 res = validate_dictmaker(CHILD(tree, 1)); | 2405 res = validate_dictmaker(CHILD(tree, 1)); |
| 2406 break; | 2406 break; |
| 2407 case BACKQUOTE: | |
| 2408 res = ((nch == 3) | |
| 2409 && validate_testlist1(CHILD(tree, 1)) | |
| 2410 && validate_ntype(CHILD(tree, 2), BACKQUOTE)); | |
| 2411 break; | |
| 2412 case NAME: | 2407 case NAME: |
| 2413 case NUMBER: | 2408 case NUMBER: |
| 2414 res = (nch == 1); | 2409 res = (nch == 1); |
| 2415 break; | 2410 break; |
| 2416 case STRING: | 2411 case STRING: |
