diff options
author | Hansraj Das <raj.das.136@gmail.com> | 2019-08-15 16:19:07 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-08-15 16:19:07 (GMT) |
commit | 69f37bcb28d7cd78255828029f895958b5baf6ff (patch) | |
tree | 5ed146b99cd0b885d91e27aa589cdacbe4428778 /Parser/tokenizer.c | |
parent | 37806f404f57b234902f0c8de9a04647ad01b7f1 (diff) | |
download | cpython-69f37bcb28d7cd78255828029f895958b5baf6ff.zip cpython-69f37bcb28d7cd78255828029f895958b5baf6ff.tar.gz cpython-69f37bcb28d7cd78255828029f895958b5baf6ff.tar.bz2 |
Indent code inside if block. (GH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition.
Diffstat (limited to 'Parser/tokenizer.c')
-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; |