Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp677917lqb; Wed, 17 Apr 2024 07:53:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUy7y2uVUBaDQNUmc7/hdlZTwgg0QHhHn8RU9sIK3aHns3aPAuyesKXpoQXhqAhOhvPI8zXGg6w1RuXW/jRFg824leBaqFPRCBkv6CkUA== X-Google-Smtp-Source: AGHT+IGUYSWdPbvY+YbXFbvxdWY7YZyO03VZB/uY9e55YbK9siOr0rDN8ZyF7UQfDEVyywyBHPmI X-Received: by 2002:a05:6808:1382:b0:3c7:2aba:1bea with SMTP id c2-20020a056808138200b003c72aba1beamr5341545oiw.28.1713365626786; Wed, 17 Apr 2024 07:53:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713365626; cv=pass; d=google.com; s=arc-20160816; b=hKO/thM3Ic32EB2YcLsz5IAFl75WAmTAOnqibBinA75BpRJvCdlW2UlUV9QjOVkDJr m40QJtvPGNBUUbf/pdRkEtW87iOhlXRKsIBeYdJUZtKTXCmkewjLiSaUmE4FYjixA4+2 V0lGK4bEinYmVfY0pzkaxWJAIQAviCcTPGwBaXoAoofpF/R51MARsrTX05MwE5W0TpqA C7msRiHKnrjN/sCL7k2tOhZbHMttEaCCe0OphXlKGgQo493hK90fI8k/UbZNYMByQNK0 SPeT9cPULuCRB2d50pisJCN3AtROEU5h6TPA4/KB3yntrbndvLvbm/4o2YZSvoxUV1D9 ZawA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=o/WZVlqzqs+cchBVEDszJLyTbJFnJswqUxOSpCM7tSg=; fh=itRXaU7x26tQePCOUWC6n7e0neSphoV0+eJlHcM+mRU=; b=DZ79tFXB7Mpwk20gso0MwAaS0GQY3p04tqgvC4CE3cE1FlWspJvWWH9E7DaXsNjXCI 4rdPdLJFTzRWXk8LPutzTqrmk9fsr2A/mRMkkghxt0j0XT6lneXERVmX2ROXTGe8RDlb Leu5U6kqbHNOyPM5pZ5ZZZDpwYoArkMRe2RSEmsagvzh3GJTDaOl+fFeiIodQTcsxr6l nh8YyVpfahUZccXTBiccIq2wLUjPFN+4mdiS05ZrzlFxnPYQ2V3vRUav5INbfab0tKws knzO4hKwXDkfEsJ339patgrmcQG+0DkyCvtmYttwvP1TI6DTu2Lu5/JCEO9iMM7P4jua /m8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="hM0+/LvZ"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-148734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e19-20020ac85993000000b004365f58858asi14811056qte.323.2024.04.17.07.53.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="hM0+/LvZ"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-148734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 82ABE1C2128C for ; Wed, 17 Apr 2024 14:53:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 933D114265A; Wed, 17 Apr 2024 14:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hM0+/LvZ" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A6781428F2 for ; Wed, 17 Apr 2024 14:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713365578; cv=none; b=asDzV+IXc4FJjLRc8LY8EKBwdXegcf0FKJ18keKdEB6Gt3srrcBEDXQba6YX4Fp2shjOJ5iwTTothkgbt8ORUpvr2x6C6oRohzt5GrkQqNh9aq8edkAP75TX8MPxIaqy34x6YbjDmmRoC/3HlsyiiiMunm9DyY5cjUQZWiOzRP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713365578; c=relaxed/simple; bh=o/WZVlqzqs+cchBVEDszJLyTbJFnJswqUxOSpCM7tSg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=FO7KAWxQIuapLCZqV53vZvz1O2ljLM/DyIlMDZM/dukqL406+yV7Xd0fB7QAmSV/o2E+l9FMBWQgenp+yXK9B+f0B5KG+EWhMU3VG2nQtZoTkDlhW1UzNg/nnMyVqtGiDStoW8rPikhdo348g46haaRjpiVgNPWviLCuwyTWPiw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hM0+/LvZ; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713365576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o/WZVlqzqs+cchBVEDszJLyTbJFnJswqUxOSpCM7tSg=; b=hM0+/LvZzJjq1qMtt3DzQke8uQjO9Yuts5S3k41vjkvWW9ZDlR0glkD9I3Kw7E8eK74DyA 3u6NToyL5Fr1Bke8VRJYFr8Ib87GBhhxjBuS5PkBb22yR+Z/UxknzV6o74IBIndDeLpy0T qwZ4D6fwZZ04Q0z7OqyhfA4UqXMQ12E= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-hPO2HUuBOLC0GHQtplWUQA-1; Wed, 17 Apr 2024 10:52:50 -0400 X-MC-Unique: hPO2HUuBOLC0GHQtplWUQA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4B051104B502; Wed, 17 Apr 2024 14:52:50 +0000 (UTC) Received: from RHTRH0061144 (dhcp-17-72.bos.redhat.com [10.18.17.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CEC881121306; Wed, 17 Apr 2024 14:52:49 +0000 (UTC) From: Aaron Conole To: Adrian Moreno Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org (open list), Paolo Abeni , Eric Dumazet , dev@openvswitch.org (open list:OPENVSWITCH), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), Pravin B Shelar , "David S. Miller" , Shuah Khan , Jakub Kicinski Subject: Re: [PATCH net-next] selftests: openvswitch: Fix escape chars in regexp. In-Reply-To: <20240416090913.2028475-1-amorenoz@redhat.com> (Adrian Moreno's message of "Tue, 16 Apr 2024 11:09:13 +0200") References: <20240416090913.2028475-1-amorenoz@redhat.com> Date: Wed, 17 Apr 2024 10:52:49 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Adrian Moreno writes: > Character sequences starting with `\` are interpreted by python as > escaped Unicode characters. However, they have other meaning in > regular expressions (e.g: "\d"). > > It seems Python >= 3.12 starts emitting a SyntaxWarning when these > escaped sequences are not recognized as valid Unicode characters. > > An example of these warnings: > > tools/testing/selftests/net/openvswitch/ovs-dpctl.py:505: > SyntaxWarning: invalid escape sequence '\d' > > Fix all the warnings by flagging literals as raw strings. > > Signed-off-by: Adrian Moreno > --- Thanks, Adrian. Reviewed-by: Aaron Conole