mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
Indent code inside if block. (GH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition.
(cherry picked from commit 69f37bcb28
)
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
This commit is contained in:
parent
f781283ff6
commit
64db5aac6b
1 changed files with 1 additions and 1 deletions
|
@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
|
||||||
if (tok->encoding) {
|
if (tok->encoding) {
|
||||||
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
|
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
|
||||||
if (encoding)
|
if (encoding)
|
||||||
strcpy(encoding, tok->encoding);
|
strcpy(encoding, tok->encoding);
|
||||||
}
|
}
|
||||||
PyTokenizer_Free(tok);
|
PyTokenizer_Free(tok);
|
||||||
return encoding;
|
return encoding;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue