lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 17 Apr 2024 10:52:49 -0400
From: Aaron Conole <aconole@...hat.com>
To: Adrian Moreno <amorenoz@...hat.com>
Cc: netdev@...r.kernel.org,  linux-kernel@...r.kernel.org (open list),
  Paolo Abeni <pabeni@...hat.com>,  Eric Dumazet <edumazet@...gle.com>,
  dev@...nvswitch.org (open list:OPENVSWITCH),
  linux-kselftest@...r.kernel.org (open list:KERNEL SELFTEST FRAMEWORK),
  Pravin B Shelar <pshelar@....org>,  "David S. Miller"
 <davem@...emloft.net>,  Shuah Khan <shuah@...nel.org>,  Jakub Kicinski
 <kuba@...nel.org>
Subject: Re: [PATCH net-next] selftests: openvswitch: Fix escape chars in
 regexp.

Adrian Moreno <amorenoz@...hat.com> 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 <amorenoz@...hat.com>
> ---

Thanks, Adrian.

Reviewed-by: Aaron Conole <aconole@...hat.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ