diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-15 16:38:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 16:38:22 (GMT) |
commit | 64db5aac6be73b14396bcde1648997e208b5a8da (patch) | |
tree | 0e5c732913f085af15014cca3a43e79d1585286c /Parser | |
parent | f781283ff6042fa5bc220a1572effc38b545eb20 (diff) | |
download | cpython-64db5aac6be73b14396bcde1648997e208b5a8da.zip cpython-64db5aac6be73b14396bcde1648997e208b5a8da.tar.gz cpython-64db5aac6be73b14396bcde1648997e208b5a8da.tar.bz2 |
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@gmail.com>
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 31fe970..5763e47 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; |