]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
treewide: remove unnessary "coding" header
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 29 Sep 2025 15:49:25 +0000 (17:49 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 1 Oct 2025 15:22:07 +0000 (11:22 -0400)
The "-*- coding: utf-8 -*-" header was needed in Python 2,
but in Python 3 UTF-8 is already the default encoding of
source files.

It is even less necessary in .css files that do not have UTF-8
sequences at all.

Suggested-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250929154938.594389-4-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
36 files changed:
docs/conf.py
docs/sphinx-static/theme_overrides.css
scripts/analyse-locks-simpletrace.py
scripts/modinfo-collect.py
scripts/modinfo-generate.py
scripts/oss-fuzz/minimize_qtest_trace.py
scripts/oss-fuzz/output_reproducer.py
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
scripts/probe-gdb-support.py
scripts/qapi/error.py
scripts/qapi/expr.py
scripts/qapi/gen.py
scripts/qapi/parser.py
scripts/qapi/schema.py
scripts/qemu-plugin-symbols.py
scripts/qemugdb/tcg.py
scripts/qemugdb/timers.py
scripts/replay-dump.py
scripts/tracetool.py
scripts/tracetool/__init__.py
scripts/tracetool/backend/__init__.py
scripts/tracetool/backend/dtrace.py
scripts/tracetool/backend/ftrace.py
scripts/tracetool/backend/log.py
scripts/tracetool/backend/simple.py
scripts/tracetool/backend/syslog.py
scripts/tracetool/backend/ust.py
scripts/tracetool/format/__init__.py
scripts/tracetool/format/c.py
scripts/tracetool/format/d.py
scripts/tracetool/format/h.py
scripts/tracetool/format/log_stap.py
scripts/tracetool/format/simpletrace_stap.py
scripts/tracetool/format/stap.py
scripts/tracetool/format/ust_events_c.py
scripts/tracetool/format/ust_events_h.py

index e09769e5f83d48613264f201731e768d95a656da..0c9ec74097fab7453379c25fc09eeb99bc4d760c 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # QEMU documentation build configuration file, created by
 # sphinx-quickstart on Thu Jan 31 16:40:14 2019.
 #
index b225bf706f505b0c66be2daaca234bf7bc869cb4..f312e9b57e4a000141f79a57d60c433e087f2f07 100644 (file)
@@ -1,5 +1,4 @@
-/* -*- coding: utf-8; mode: css -*-
- *
+/*
  * Sphinx HTML theme customization: read the doc
  * Based on Linux Documentation/sphinx-static/theme_overrides.css
  */
index d650dd7140867add15f8e5315a09119f5809c70d..bd04cd43c9429157cb30ea45db785ad8e7ada8cc 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 #
 # Analyse lock events and compute statistics
 #
index 48bd92bd61808857cb84b9a0c1e1eb3a0694e1b2..6ebaea989db6425f9de23944a6464f2ae05c862b 100644 (file)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 import os
 import sys
index b1538fcced77e01805f6c8ff4d52b1f887a7ebc8..aaf23544c46222e379190f5b96345043bdedfe65 100644 (file)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 import os
 import sys
index d1f3990c16a7c9f72821236b37cf3d9a2c35fcfc..414a6d91dd81618f8f6ec47de549b668f8eae5e2 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 """
 This takes a crashing qtest trace and tries to remove superfluous operations
index e8ef76b3413812313ec2bb0e1c5e9df8cb6be48a..0df96cf95878e651c573a2f972c1fe4da71f6d58 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 """
 Convert plain qtest traces to C or Bash reproducers
index b154a25508f7ee1e368f48004a0dec434290f416..8af0d5d9c4e0459de968eb2e6c3982dcea0ec59c 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 """
 Use this to convert qtest log info from a generic fuzzer input into a qtest
index 6bcadce15007f492bf4ffe8c6c524966c5358287..43c703028738595aad614c6960c406cae9f20b34 100644 (file)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# coding: utf-8
 #
 # Probe gdb for supported architectures.
 #
index e35e4ddb26a01085d2f86f201791a9e86a2d9f6f..f73bc553db6fd8d98d5b7a3e41e452a498d74fbf 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # Copyright (c) 2017-2019 Red Hat Inc.
 #
 # Authors:
index cae0a083591abfb7aa25b1ed88f25c43f9b8371a..f40b247f8b61bc4ded443ae436fa033d02dca1d0 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # Copyright IBM, Corp. 2011
 # Copyright (c) 2013-2021 Red Hat Inc.
 #
index d3c56d45c89251c5b33aefa040e9e188a9cafb84..0c9b8db3b0241918472e9d840ef66a692e901240 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # QAPI code generation
 #
 # Copyright (c) 2015-2019 Red Hat Inc.
index 2529edf81aa8e4fc2bde87ce675285f775ecd3ce..9fbf80a54104595a980ffe8258183c6c02973d8e 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # QAPI schema parser
 #
 # Copyright IBM, Corp. 2011
index 3abddea35257e8da401baf7cfb9920b1f6d372b2..8d88b40de2e19e200e7b55b524a489c52b1a6b9b 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # QAPI schema internal representation
 #
 # Copyright (c) 2015-2019 Red Hat Inc.
index e285ebb8f9ed306de9d886e4e60d0fe39f5ae311..69644979c19b29ee7a4501d56559c61f84bed37e 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 #
 # Extract QEMU Plugin API symbols from a header file
 #
index 16c03c06a9437776d5eed962aacf598f0ceb2499..22529c72775cd6624ad1c738542de339bfb85290 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # GDB debugging support, TCG status
 #
 # Copyright 2016 Linaro Ltd
index 46537b27cf058ecbebb8d55f958548e274261073..5714f92cc211e561b0de8a5306ff6560f9d79b7a 100644 (file)
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 # GDB debugging support
 #
 # Copyright 2017 Linaro Ltd
index 4ce7ff51cc7b3a32d8492448f06ab4b36a24d466..097636570dd898411190a149473fff7ad51231bc 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 #
 # Dump the contents of a recorded execution stream
 #
index 5de9ce96d3024b99e28dc5f7c2b704f3fa7bdd1b..0fdc9cb94770b05368cc7cccc36a6a644fb6520f 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 """
 Command-line wrapper for the tracetool machinery.
index 4ef1dc1fca3e8b3ae78a995b5a177fe51a8f1103..9dd8ec27e15442f2f02e89141958cbfb7f180869 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Machinery for generating tracing-related intermediate files.
 """
index 6c6344deddb241b85bbf045a7684db48b5c6afbd..70401309196e69488e564540e18eea528336aa71 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Backend management.
 
index e17edc9b9d829a4dfc8d11d24a4fdcb465159992..4835454193d1af036fc4584f4cacf687180ff1d1 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 DTrace/SystemTAP backend.
 """
index 5fa30ccc08e696f832cc6205520f17bdc6ff3c4f..e6317ca4bfbd5c9d6f07258e44ced320a23ad61d 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Ftrace built-in backend.
 """
index eb50ceea34c09c753c44995efdc553946668b1bf..9842522b184479fc195effcdd390fbd26e734500 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Stderr built-in backend.
 """
index 7c84c06b20084d216d25a556d66da381568c1be9..066e5e9f11f21c7088ceac49a8ac71b0e353909e 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Simple built-in backend.
 """
index 3f82e54aabfdfa56537ede6abeffeba5bfdd3633..74af038089906748a368c01efef2e177fb047259 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Syslog built-in backend.
 """
index c857516f212617b6ff0f45df3101fe127f867ff7..6cc651646dd697438ed8e5657f28ddb3390cd931 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 LTTng User Space Tracing backend.
 """
index 042fe7d103cd6f8f1b6c81fb47ae09d4065e7868..94a37bfce9fb502cd96b3fbaf0e40366dd812873 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Format management.
 
index e473fb6c6eb0581aeabd1782b9c22d3db944ec9c..3c4398c237300fea1b484bbfa6fc643375cd6c1e 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 trace/generated-tracers.c
 """
index a5e096e214b81bdbb651dd13955b47e3deb35228..684598c18351dad27dca12118a98f71cfb632547 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 trace/generated-tracers.dtrace (DTrace only).
 """
index bd9e0ca7f236264d1ae0cb8c592d95a2c22cdaef..2119753be10da8d86816c6fdfd28137956aa18a8 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 trace/generated-tracers.h
 """
index 5b1bbe907ff5be3ca9ebf87a411d601a7d009cb9..02f23bfb8d28e9ba419bfdf23e567650a3ab5777 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Generate .stp file that printfs log messages (DTrace with SystemTAP only).
 """
index ac39a492d961cbb3a8e7825fdd8629af0dd2922b..3c3584a9318f363c49477a5cfbef223aee0af009 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Generate .stp file that outputs simpletrace binary traces (DTrace with SystemTAP only).
 """
index 4d77fbc11a9d97b00d145872020a152a89f428ca..04c7a35a25fe9c25d9684bbd4de9cb8561a0824f 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 Generate .stp file (DTrace with SystemTAP only).
 """
index 569754a30482efba41a440e258a55e34262831ee..ea5f0ae99fa5166c6bd5b8b4d7ef579674576ae3 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 trace/generated-ust.c
 """
index 2a31fefeca1e2b3ee35869324fcc9a29ee1ff3e3..242c9814fdc51caecb2886c6c514b4e15055d9a1 100644 (file)
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 trace/generated-ust-provider.h
 """