The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=80430c15caac0c10832455f868fa01c912996982

commit 80430c15caac0c10832455f868fa01c912996982
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2021-05-11 13:47:45 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2021-05-11 15:10:42 +0000

    netinet6 tests: Fix Python warning
    
    Python 3.8 warns about line 112:
        'SyntaxWarning: "is" with a literal. Did you mean "=="?'
    
    Use '==' as Python suggests.
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 tests/sys/netinet6/frag6/frag6_16.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/netinet6/frag6/frag6_16.py 
b/tests/sys/netinet6/frag6/frag6_16.py
index c38f5da4dea9..42ac8e2b4675 100644
--- a/tests/sys/netinet6/frag6/frag6_16.py
+++ b/tests/sys/netinet6/frag6/frag6_16.py
@@ -109,7 +109,7 @@ def main():
        foffset=(int)(1288/8)
        mbit=1
        for i in range(1,30):
-               if i is 29:
+               if i == 29:
                        mbit=0
                ip6f0n = sp.Ether() / \
                        sp.IPv6(src=args.src[0], dst=args.to[0]) / \
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to