Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 36662:2ab9270ef19a legacy-trunk
Check whether there are flags.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 26 Feb 2006 22:12:35 +0000 |
| parents | 3c0b26113df6 |
| children | bbf16fd024df |
comparison
equal
deleted
inserted
replaced
| 36661:710cbdd478a8 | 36662:2ab9270ef19a |
|---|---|
| 1252 mod_ty mod = PyParser_ASTFromString(str, filename, start, flags, arena); | 1252 mod_ty mod = PyParser_ASTFromString(str, filename, start, flags, arena); |
| 1253 if (mod == NULL) { | 1253 if (mod == NULL) { |
| 1254 PyArena_Free(arena); | 1254 PyArena_Free(arena); |
| 1255 return NULL; | 1255 return NULL; |
| 1256 } | 1256 } |
| 1257 if (flags->cf_flags & PyCF_ONLY_AST) { | 1257 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { |
| 1258 PyObject *result = PyAST_mod2obj(mod); | 1258 PyObject *result = PyAST_mod2obj(mod); |
| 1259 PyArena_Free(arena); | 1259 PyArena_Free(arena); |
| 1260 return result; | 1260 return result; |
| 1261 } | 1261 } |
| 1262 co = PyAST_Compile(mod, filename, flags, arena); | 1262 co = PyAST_Compile(mod, filename, flags, arena); |
