FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix misindents in compile.c (for Benjamin). · python-emscripten/cpython@a4d36a9 · GitHub

Repository navigation

Commit a4d36a9

Browse files
committed
Fix misindents in compile.c (for Benjamin).
Of course, whoever used the wrong indentation rules needs to be spanked.
1 parent 7f8ede4 commit a4d36a9

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎Python/compile.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ compiler_addop_o(struct compiler *c, int opcode, PyObject *dict,
994994
{
995995
int arg = compiler_add_o(c, dict, o);
996996
if (arg < 0)
997-
return 0;
997+
return 0;
998998
return compiler_addop_i(c, opcode, arg);
999999
}
10001000

@@ -1005,11 +1005,11 @@ compiler_addop_name(struct compiler *c, int opcode, PyObject *dict,
10051005
int arg;
10061006
PyObject *mangled = _Py_Mangle(c->u->u_private, o);
10071007
if (!mangled)
1008-
return 0;
1008+
return 0;
10091009
arg = compiler_add_o(c, dict, mangled);
10101010
Py_DECREF(mangled);
10111011
if (arg < 0)
1012-
return 0;
1012+
return 0;
10131013
return compiler_addop_i(c, opcode, arg);
10141014
}
10151015

@@ -1160,7 +1160,7 @@ static int
11601160
compiler_isdocstring(stmt_ty s)
11611161
{
11621162
if (s->kind != Expr_kind)
1163-
return 0;
1163+
return 0;
11641164
return s->v.Expr.value->kind == Str_kind;
11651165
}
11661166

@@ -1266,11 +1266,11 @@ compiler_lookup_arg(PyObject *dict, PyObject *name)
12661266
PyObject *k, *v;
12671267
k = PyTuple_Pack(2, name, name->ob_type);
12681268
if (k == NULL)
1269-
return -1;
1269+
return -1;
12701270
v = PyDict_GetItem(dict, k);
12711271
Py_DECREF(k);
12721272
if (v == NULL)
1273-
return -1;
1273+
return -1;
12741274
return PyInt_AS_LONG(v);
12751275
}
12761276

@@ -2926,7 +2926,7 @@ compiler_with(struct compiler *c, stmt_ty s)
29262926
block = compiler_new_block(c);
29272927
finally = compiler_new_block(c);
29282928
if (!block || !finally)
2929-
return 0;
2929+
return 0;
29302930

29312931
/* Evaluate EXPR */
29322932
VISIT(c, expr, s->v.With.context_expr);
@@ -2938,15 +2938,15 @@ compiler_with(struct compiler *c, stmt_ty s)
29382938
functions the same as SETUP_FINALLY except that exceptions are
29392939
normalized. */
29402940
if (!compiler_push_fblock(c, FINALLY_TRY, block)) {
2941-
return 0;
2941+
return 0;
29422942
}
29432943

29442944
if (s->v.With.optional_vars) {
2945-
VISIT(c, expr, s->v.With.optional_vars);
2945+
VISIT(c, expr, s->v.With.optional_vars);
29462946
}
29472947
else {
29482948
/* Discard result from context.__enter__() */
2949-
ADDOP(c, POP_TOP);
2949+
ADDOP(c, POP_TOP);
29502950
}
29512951

29522952
/* BLOCK code */
@@ -2959,7 +2959,7 @@ compiler_with(struct compiler *c, stmt_ty s)
29592959
ADDOP_O(c, LOAD_CONST, Py_None, consts);
29602960
compiler_use_next_block(c, finally);
29612961
if (!compiler_push_fblock(c, FINALLY_END, finally))
2962-
return 0;
2962+
return 0;
29632963

29642964
/* Finally block starts; context.__exit__ is on the stack under
29652965
the exception or return information. Just issue our magic

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL