Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 771963

Summary: app-portage/mirrorselect: SyntaxWarning about "is not" comparison
Product: Gentoo Linux Reporter: Stefan Huber <shuber>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Huber 2021-02-21 17:34:08 UTC
When emerging mirrorselect then a warning is shown:
/usr/lib/python3.8/site-packages/mirrorselect/selectors.py:263: SyntaxWarning: "is not" with a literal. Did you m
ean "!="?

This warning is reasonable. A fix with a comment as git-commit message can be found here on a clone of the mirrorselect git repository:
https://github.com/shuber2/mirrorselect/commit/be5193f7f87664f88709492ebdaccb7154f9c5bf

Reproducible: Always
Comment 1 Stefan Huber 2021-07-05 15:50:15 UTC
Any news to this? It also happens during invocation of mirrorselect in some cases.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-06 07:57:28 UTC
This seems to have been fixed by https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=a61f2d061134d1a61254da4cd8c30cc9b4749cdb which is in 2.3.0.