| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -994,7 +994,7 @@ compiler_addop_o(struct compiler *c, int opcode, PyObject *dict, | |||
| 994 | 994 | { | |
| 995 | 995 | int arg = compiler_add_o(c, dict, o); | |
| 996 | 996 | if (arg < 0) | |
| 997 | - return 0; | ||
| 997 | + return 0; | ||
| 998 | 998 | return compiler_addop_i(c, opcode, arg); | |
| 999 | 999 | } | |
| 1000 | 1000 | ||
@@ -1005,11 +1005,11 @@ compiler_addop_name(struct compiler *c, int opcode, PyObject *dict, | |||
| 1005 | 1005 | int arg; | |
| 1006 | 1006 | PyObject *mangled = _Py_Mangle(c->u->u_private, o); | |
| 1007 | 1007 | if (!mangled) | |
| 1008 | - return 0; | ||
| 1008 | + return 0; | ||
| 1009 | 1009 | arg = compiler_add_o(c, dict, mangled); | |
| 1010 | 1010 | Py_DECREF(mangled); | |
| 1011 | 1011 | if (arg < 0) | |
| 1012 | - return 0; | ||
| 1012 | + return 0; | ||
| 1013 | 1013 | return compiler_addop_i(c, opcode, arg); | |
| 1014 | 1014 | } | |
| 1015 | 1015 | ||
@@ -1160,7 +1160,7 @@ static int | |||
| 1160 | 1160 | compiler_isdocstring(stmt_ty s) | |
| 1161 | 1161 | { | |
| 1162 | 1162 | if (s->kind != Expr_kind) | |
| 1163 | - return 0; | ||
| 1163 | + return 0; | ||
| 1164 | 1164 | return s->v.Expr.value->kind == Str_kind; | |
| 1165 | 1165 | } | |
| 1166 | 1166 | ||
@@ -1266,11 +1266,11 @@ compiler_lookup_arg(PyObject *dict, PyObject *name) | |||
| 1266 | 1266 | PyObject *k, *v; | |
| 1267 | 1267 | k = PyTuple_Pack(2, name, name->ob_type); | |
| 1268 | 1268 | if (k == NULL) | |
| 1269 | - return -1; | ||
| 1269 | + return -1; | ||
| 1270 | 1270 | v = PyDict_GetItem(dict, k); | |
| 1271 | 1271 | Py_DECREF(k); | |
| 1272 | 1272 | if (v == NULL) | |
| 1273 | - return -1; | ||
| 1273 | + return -1; | ||
| 1274 | 1274 | return PyInt_AS_LONG(v); | |
| 1275 | 1275 | } | |
| 1276 | 1276 | ||
@@ -2926,7 +2926,7 @@ compiler_with(struct compiler *c, stmt_ty s) | |||
| 2926 | 2926 | block = compiler_new_block(c); | |
| 2927 | 2927 | finally = compiler_new_block(c); | |
| 2928 | 2928 | if (!block || !finally) | |
| 2929 | - return 0; | ||
| 2929 | + return 0; | ||
| 2930 | 2930 | ||
| 2931 | 2931 | /* Evaluate EXPR */ | |
| 2932 | 2932 | VISIT(c, expr, s->v.With.context_expr); | |
@@ -2938,15 +2938,15 @@ compiler_with(struct compiler *c, stmt_ty s) | |||
| 2938 | 2938 | functions the same as SETUP_FINALLY except that exceptions are | |
| 2939 | 2939 | normalized. */ | |
| 2940 | 2940 | if (!compiler_push_fblock(c, FINALLY_TRY, block)) { | |
| 2941 | - return 0; | ||
| 2941 | + return 0; | ||
| 2942 | 2942 | } | |
| 2943 | 2943 | ||
| 2944 | 2944 | if (s->v.With.optional_vars) { | |
| 2945 | - VISIT(c, expr, s->v.With.optional_vars); | ||
| 2945 | + VISIT(c, expr, s->v.With.optional_vars); | ||
| 2946 | 2946 | } | |
| 2947 | 2947 | else { | |
| 2948 | 2948 | /* Discard result from context.__enter__() */ | |
| 2949 | - ADDOP(c, POP_TOP); | ||
| 2949 | + ADDOP(c, POP_TOP); | ||
| 2950 | 2950 | } | |
| 2951 | 2951 | ||
| 2952 | 2952 | /* BLOCK code */ | |
@@ -2959,7 +2959,7 @@ compiler_with(struct compiler *c, stmt_ty s) | |||
| 2959 | 2959 | ADDOP_O(c, LOAD_CONST, Py_None, consts); | |
| 2960 | 2960 | compiler_use_next_block(c, finally); | |
| 2961 | 2961 | if (!compiler_push_fblock(c, FINALLY_END, finally)) | |
| 2962 | - return 0; | ||
| 2962 | + return 0; | ||
| 2963 | 2963 | ||
| 2964 | 2964 | /* Finally block starts; context.__exit__ is on the stack under | |
| 2965 | 2965 | the exception or return information. Just issue our magic | |
| Back | FazBrowse Home | New Git URL |
0 commit comments