From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hM0+/LvZ" 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