]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemurunner.py: replace 'codecs.open()' with 'open()'
authorTrevor Gamblin <tgamblin@baylibre.com>
Fri, 23 Jan 2026 16:28:58 +0000 (11:28 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jan 2026 10:08:56 +0000 (10:08 +0000)
commitb80b52cd07580a7936d87bfad8ff42c5d436211c
tree9c604cadd4ba801719fadb3c334801d159649796
parentf4b2eb3c29020f967580ad3a1691e17accc6f22a
qemurunner.py: replace 'codecs.open()' with 'open()'

With newer Python versions, codecs.open() is deprecated, leading to the
following warning:

|Stderr:
|/srv/pokybuild/tgamblin-qemux86/openembedded-core/meta/lib/oeqa/utils/qemurunner.py:133: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
|  with codecs.open(self.logfile + extension, "ab") as f:

Note that if we try to be explicit and make the 'errors' keyword
'strict' (as the codecs.open() call defaulted to), we see other
warnings:

|ValueError: binary mode doesn't take an errors argument

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oeqa/utils/qemurunner.py