projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37806f4
)
Indent code inside if block. (GH-15284)
author
Hansraj Das
<raj.das.136@gmail.com>
Thu, 15 Aug 2019 16:19:07 +0000
(21:49 +0530)
committer
Benjamin Peterson
<benjamin@python.org>
Thu, 15 Aug 2019 16:19:07 +0000
(09:19 -0700)
Without indendation, seems like strcpy line is parallel to `if` condition.
Parser/tokenizer.c
patch
|
blob
|
history
diff --git
a/Parser/tokenizer.c
b/Parser/tokenizer.c
index 31fe970c900382e681117285a44ea64f30d1945c..5763e47c4b00b34bcc01d606ad34024edb28f4cb 100644
(file)
--- 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;