Skip to content

Commit e4668aa

Browse files
committed
fix misleading indentation (closes #28139)
1 parent 51bfaa7 commit e4668aa

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

Modules/_localemodule.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -172,23 +172,23 @@ PyLocale_setlocale(PyObject* self, PyObject* args)
172172
#endif
173173

174174
if (locale) {
175-
/* set locale */
176-
result = setlocale(category, locale);
177-
if (!result) {
178-
/* operation failed, no setting was changed */
179-
PyErr_SetString(Error, "unsupported locale setting");
180-
return NULL;
181-
}
182-
result_object = PyString_FromString(result);
183-
if (!result_object)
184-
return NULL;
185-
/* record changes to LC_CTYPE */
186-
if (category == LC_CTYPE || category == LC_ALL)
187-
fixup_ulcase();
175+
/* set locale */
176+
result = setlocale(category, locale);
177+
if (!result) {
178+
/* operation failed, no setting was changed */
179+
PyErr_SetString(Error, "unsupported locale setting");
180+
return NULL;
181+
}
182+
result_object = PyString_FromString(result);
183+
if (!result_object)
184+
return NULL;
185+
/* record changes to LC_CTYPE */
186+
if (category == LC_CTYPE || category == LC_ALL)
187+
fixup_ulcase();
188188
/* things that got wrong up to here are ignored */
189189
PyErr_Clear();
190190
} else {
191-
/* get locale */
191+
/* get locale */
192192
result = setlocale(category, NULL);
193193
if (!result) {
194194
PyErr_SetString(Error, "locale query failed");
@@ -297,9 +297,9 @@ PyLocale_strcoll(PyObject* self, PyObject* args)
297297
}
298298
/* Convert the non-unicode argument to unicode. */
299299
if (!PyUnicode_Check(os1)) {
300-
os1 = PyUnicode_FromObject(os1);
301-
if (!os1)
302-
return NULL;
300+
os1 = PyUnicode_FromObject(os1);
301+
if (!os1)
302+
return NULL;
303303
rel1 = 1;
304304
}
305305
if (!PyUnicode_Check(os2)) {

Modules/cjkcodecs/multibytecodec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ multibytecodec_encode(MultibyteCodec *codec,
531531
if (_PyString_Resize(&buf.outobj, finalsize) == -1)
532532
goto errorexit;
533533

534-
*data = buf.inbuf;
534+
*data = buf.inbuf;
535535
Py_XDECREF(buf.excobj);
536536
return buf.outobj;
537537

Python/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2284,7 +2284,7 @@ ast_for_print_stmt(struct compiling *c, const node *n)
22842284
dest = ast_for_expr(c, CHILD(n, 2));
22852285
if (!dest)
22862286
return NULL;
2287-
start = 4;
2287+
start = 4;
22882288
}
22892289
values_count = (NCH(n) + 1 - start) / 2;
22902290
if (values_count) {

0 commit comments

Comments
 (0)