]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
.gitignore: ignore Python compiled bytecode
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 24 Apr 2025 00:16:24 +0000 (08:16 +0800)
committerJonathan Corbet <corbet@lwn.net>
Thu, 24 Apr 2025 16:12:46 +0000 (10:12 -0600)
While the building system doesn't create any Python JIT bytecode,
if one manually runs kernel-doc.py or get_abi.py, Python will,
by default, create a bytecode and store it under scripts/lib/*.

This is normal, and not controlled by the Kernel itself. So,
add *.pyc as an extension to be ignored.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <ae1c54ddacf6ded1f7154897b10798d4b3fdaf96.1745453655.git.mchehab+huawei@kernel.org>

.gitignore

index f2f63e47fb88686d5d5ab17d480c9301184134a9..bf5ee6e01cd42aa321a827076c7a6e14a79e8ba1 100644 (file)
@@ -40,6 +40,7 @@
 *.o
 *.o.*
 *.patch
+*.pyc
 *.rmeta
 *.rpm
 *.rsi