Fix whitespace

This commit is contained in:
Raymond Hettinger 2012-07-20 17:47:59 -07:00
parent 715a63b783
commit dee8af225b

View file

@ -532,8 +532,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
tgt = GETJUMPTGT(codestr, i); tgt = GETJUMPTGT(codestr, i);
j = codestr[tgt]; j = codestr[tgt];
if (CONDITIONAL_JUMP(j)) { if (CONDITIONAL_JUMP(j)) {
/* NOTE: all possible jumps here are /* NOTE: all possible jumps here are absolute! */
absolute! */
if (JUMPS_ON_TRUE(j) == JUMPS_ON_TRUE(opcode)) { if (JUMPS_ON_TRUE(j) == JUMPS_ON_TRUE(opcode)) {
/* The second jump will be /* The second jump will be
taken iff the first is. */ taken iff the first is. */
@ -544,13 +543,10 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
SETARG(codestr, i, tgttgt); SETARG(codestr, i, tgttgt);
goto reoptimize_current; goto reoptimize_current;
} else { } else {
/* The second jump is not taken /* The second jump is not taken if the first is (so
if the first is (so jump past jump past it), and all conditional jumps pop their
it), and all conditional argument when they're not taken (so change the
jumps pop their argument when first jump to pop its argument when it's taken). */
they're not taken (so change
the first jump to pop its
argument when it's taken). */
if (JUMPS_ON_TRUE(opcode)) if (JUMPS_ON_TRUE(opcode))
codestr[i] = POP_JUMP_IF_TRUE; codestr[i] = POP_JUMP_IF_TRUE;
else else