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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 05 Aug 2020 16:04:51 -0700
From:   Stephen Boyd <swboyd@...omium.org>
To:     Andrew Morton <akpm@...ux-foundation.org>,
        Jan Kiszka <jan.kiszka@...mens.com>,
        Kieran Bingham <kbingham@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>
Cc:     Aymeric Agon-Rambosson <aymeric.agon@...dex.com>,
        linux-kernel@...r.kernel.org,
        Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Re: [PATCH] scripts/gdb: fix python 3.8 SyntaxWarning

Quoting Nick Desaulniers (2020-08-05 15:50:14)
> Fixes the observed warnings:
> scripts/gdb/linux/rbtree.py:20: SyntaxWarning: "is" with a literal. Did
> you mean "=="?
>   if node is 0:
> scripts/gdb/linux/rbtree.py:36: SyntaxWarning: "is" with a literal. Did
> you mean "=="?
>   if node is 0:
> 
> It looks like this is a new warning added in Python 3.8. I've only seen
> this once after adding the add-auto-load-safe-path rule to my ~/.gdbinit
> for a new tree.
> 
> Cc: Stephen Boyd <swboyd@...omium.org>
> Fixes: commit 449ca0c95ea2 ("scripts/gdb: add rb tree iterating utilities")
> Link: https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/
> Signed-off-by: Nick Desaulniers <ndesaulniers@...gle.com>
> ---

Reviewed-by: Stephen Boyd <swboyd@...omium.org>

Powered by blists - more mailing lists