[Python-checkins] Indent code inside if block. (GH-15284)
Miss Islington (bot)
webhook-mailer at python.org
Thu Aug 15 12:38:27 EDT 2019
https://github.com/python/cpython/commit/64db5aac6be73b14396bcde1648997e208b5a8da
commit: 64db5aac6be73b14396bcde1648997e208b5a8da
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-08-15T09:38:22-07:00
summary:
Indent code inside if block. (GH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition.
(cherry picked from commit 69f37bcb28d7cd78255828029f895958b5baf6ff)
Co-authored-by: Hansraj Das <raj.das.136 at gmail.com>
files:
M Parser/tokenizer.c
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 31fe970c9003..5763e47c4b00 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
if (tok->encoding) {
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
if (encoding)
- strcpy(encoding, tok->encoding);
+ strcpy(encoding, tok->encoding);
}
PyTokenizer_Free(tok);
return encoding;
More information about the Python-checkins
mailing list