8000 Indent code inside if block. (GH-15284) · miss-islington/cpython@70ba8aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 70ba8aa

Browse files
hansrajdasmiss-islington
authored andcommitted
Indent code inside if block. (pythonGH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition. (cherry picked from commit 69f37bc) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
1 parent 2b9b707 commit 70ba8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
18901890
if (tok->encoding) {
18911891
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
18921892
if (encoding)
1893-
strcpy(encoding, tok->encoding);
1893+
strcpy(encoding, tok->encoding);
18941894
}
18951895
PyTokenizer_Free(tok);
18961896
return encoding;

0 commit comments

Comments
 (0)
0