8000 Indent code inside if block. (GH-15284) · python/cpython@69f37bc · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 69f37bc

Browse files
hansrajdasbenjaminp
authored andcommitted
Indent code inside if block. (GH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition.
1 parent 37806f4 commit 69f37bc

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
@@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
18211821
if (tok->encoding) {
18221822
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
18231823
if (encoding)
1824-
strcpy(encoding, tok->encoding);
1824+
strcpy(encoding, tok->encoding);
18251825
}
18261826
PyTokenizer_Free(tok);
18271827
return encoding;

0 commit comments

Comments
 (0)
0