]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Indent code inside if block. (GH-15284)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Aug 2019 16:46:47 +0000 (09:46 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Aug 2019 16:46:47 +0000 (09:46 -0700)
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>
Parser/tokenizer.c

index e374c5a4aee615bd8bd7653b35bcf0f1b21c61d0..d720f19eca9db811681df25c1f2f970dc51bc360 100644 (file)
@@ -1890,7 +1890,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;