summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/python-m2crypto
diff options
context:
space:
mode:
authorMassimiliano Minella <massimiliano.minella@se.com>2026-05-04 11:31:31 +0200
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-05-11 20:15:08 +0000
commitfb1d9123351c86d7804e78e1518788913fb7c672 (patch)
treee812234305241713cd7e76487bf205b75309210b /recipes-devtools/python/python-m2crypto
parentf7eb4abba27a54c06432cca45f817f21f5754532 (diff)
downloadmeta-virtualization-fb1d9123351c86d7804e78e1518788913fb7c672.tar.gz
libvirt: fix python3 compatibility in hook_support.py
By default Popen expects all the streams to be bytes-like objects but, in the Popen.communicate() function call, the "input" argument is a string, making the call fail with the error: qemu hook error: a bytes-like object is required, not 'str' Fix the error by setting text mode to True in the subprocess creation. Also fix the "SyntaxWarning: invalid escape sequence '\w'" in the regex used to match script names. Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-devtools/python/python-m2crypto')
0 files changed, 0 insertions, 0 deletions