From nobody Sun Oct 5 00:12:25 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1759403986; cv=none; d=zohomail.com; s=zohoarc; b=ayQeA89n1o35T+FlUIc1GH6/x/q7CXd7yDtLf2J8EJ9dw+aCHgfpAe6/FgZq97oRqm1Cc0n3914gReNIzuIObCpC1+lctHUfHUSzWpLFJX41iUIqFFaDD8Zgrm7bCr68M2dbIb0EZxsc5l18Q2dZwW0gBHImK9NzDKkxo6Nlt1s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759403986; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=bDjiOdNmLphIMQa4lexZyek1hR0+Lj44BnGMbl8joa4=; b=Gi5rq5CG69WcGLKF0NCLKTlcVRBRD4mqDywEuCe5aATFByU1TbjwC41olAtTl85P8hRyRi77JcSB+1ihekxBrudvmYO5yZiA8FiFjRF9axbtRN8PIOPymw3iKcu3+/iqannfQ35neZGxW5jHeiYTJnn5hUs+v0zjnx5LrPwv/xs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1759403986237935.5550023313027; Thu, 2 Oct 2025 04:19:46 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id DA67543F7D; Thu, 2 Oct 2025 07:19:44 -0400 (EDT) Received: from [172.19.199.17] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id DF4F144232; Thu, 2 Oct 2025 07:19:11 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id EE9AB43F49; Thu, 2 Oct 2025 07:19:02 -0400 (EDT) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 3DD5C43F3E for ; Thu, 2 Oct 2025 07:19:02 -0400 (EDT) Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5926uUEm002492 for ; Thu, 2 Oct 2025 11:19:01 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 49e6bhv5sh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 02 Oct 2025 11:19:01 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 5928C5D7026736 for ; Thu, 2 Oct 2025 11:19:01 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 49eu8n5nsd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 02 Oct 2025 11:19:00 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 592BIvqA57409798 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Oct 2025 11:18:57 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 05B3420049; Thu, 2 Oct 2025 11:18:57 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AD81520040; Thu, 2 Oct 2025 11:18:56 +0000 (GMT) Received: from li-1de7cd4c-3205-11b2-a85c-d27f97db1fe1.fritz.box (unknown [9.111.17.28]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 2 Oct 2025 11:18:56 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pp1; bh=bDjiOdNmLphIMQa4lexZyek1hR0+Lj44BnGMbl8jo a4=; b=A7x0EcISOeWZUQGM4unpexYbq2mnnbEWf0XBKcmUtuJF9ihtLo1z5jm49 nkxviib1fTxVisBDmwU7R5Qpn+PGB+d8VU5aYUq0mI+wC13OllIh6xBeceBrs/1b 6foPjSD/V9axmWhqPVxdYukKlpyKqcIODUkhOJYoGAKKT2f+5LpaIr8APuV2h1tq ObeHtroxgXaNZhKIC2JLpx95XKMkSnCqcDkjhTkNLD/GahsAZ1t9XnYTJJ5D0egg kFGgCIYF/n1c6ZymMvqyDa48m03GcGp/s/u9HY+h9/coUktwQGqkm5pMhIBO6SqY wCDSQr4BSx76c2Dj2p9Crzdn5019Q== From: Marc Hartmayer To: Subject: [PATCH libvirt-python v1] examples/consolecallback.py: Use hex-encoding for `^]` Date: Thu, 2 Oct 2025 13:18:49 +0200 Message-ID: <20251002111849.82191-1-mhartmay@linux.ibm.com> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Authority-Analysis: v=2.4 cv=Se/6t/Ru c=1 sm=1 tr=0 ts=68de5fa5 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=x6icFKpwvdMA:10 a=VnNF1IyMAAAA:8 a=7alsA2wEmy6Vhiwn4gEA:9 a=3ZKOabzyN94A:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI3MDAxMCBTYWx0ZWRfX0Cn1KAadyfQe apOchNRJhqyj7AjmPzvsxKfvqtoqqS9orIvoPz4SWGcdImHC9Oxl08EGEoJMpAVeIYnG5g05Mv5 BkSs58gxvXe8P50LsKydCm72KZvmetaYvX2m6q5MaHYBud9dpfjsgQq6a1RQ+YsKR/qDEP68S70 yG5PHSTQ8dGGxOfLRrqPt5ijdYk76v2W9zPG6vj+bv3rE/O+2BlBfylnxabMVFJ4izdP5ThBj12 GkFHPv7LdoYdMLYDUq2qzDA/zI28d5Zu3hnnZKmxR8OPYtBBFICqRvNZ7lgpTbaezLkMzWHlq/s Pk8jtwOPh044zbBDhPnRh0KlEatOc0wmRM3Za+xSXytt2GUYmlwMlR7xSbkFe/6VAyRVvpNbBak Kn1x8u4JlfOzSXTvGflRq1gjPZzVUQ== X-Proofpoint-GUID: gvtYYs_N-x87hRpmvTCwOqFu8TWSEZFa X-Proofpoint-ORIG-GUID: gvtYYs_N-x87hRpmvTCwOqFu8TWSEZFa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-02_04,2025-10-02_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 priorityscore=1501 adultscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2509150000 definitions=main-2509270010 Message-ID-Hash: 67WDJ4WXGIVYDAEN7X7EGJ62Z3PYJKNN X-Message-ID-Hash: 67WDJ4WXGIVYDAEN7X7EGJ62Z3PYJKNN X-MailFrom: mhartmay@linux.ibm.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Boris Fiuczynski , Dawson Rosell X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1759403986878116600 Content-Type: text/plain; charset="utf-8" Use hex encoding for ^] to prevent potential rendering issues in web browse= rs when viewing the file on GitLab. While at it, make the file an executable as a Shebang line is present. Suggested-by: Dawson Rosell Reviewed-by: Boris Fiuczynski Signed-off-by: Marc Hartmayer --- examples/consolecallback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 =3D> 100755 examples/consolecallback.py diff --git a/examples/consolecallback.py b/examples/consolecallback.py old mode 100644 new mode 100755 index a510fdf7e5d6..0f98d29e8069 --- a/examples/consolecallback.py +++ b/examples/consolecallback.py @@ -53,7 +53,7 @@ def check_console(console: Console) -> bool: =20 def stdin_callback(watch: int, fd: int, events: int, console: Console) -> = None: readbuf =3D os.read(fd, 1024) - if readbuf.startswith(b"=1D"): + if readbuf.startswith(b"\x1d"): console.run_console =3D False return if console.stream: base-commit: 91b2f244c6434a85d9b4a0f7ec29140be707bb3d --=20 2.43.0