#8057 Running ipa-server-install produces SyntaxWarning: "is not" with a literal. Did you mean "!="?
Closed: fixed by frenaud. Opened by fcami.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1747895

Description of problem:
Running ipa-server-install on Fedora rawhide with Python 3.8, I now see
SyntaxWarning: "is not" with a literal. Did you mean "!="?
Version-Release number of selected component (if applicable):
python3-ipaclient-4.8.1-2.fc32.noarch
How reproducible:
Deterministic in each new container but I only see it during the first
invocation.
Steps to Reproduce:
1. ipa-server-install
Actual results:
# ipa-server-install
/usr/lib/python3.8/site-packages/SSSDConfig/ipachangeconf.py:399:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(sectopts) is not 0:
/usr/lib/python3.8/site-packages/ipaclient/install/ipachangeconf.py:478:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if len(sectopts) is not 0:
The log file for this installation can be found in
/var/log/ipaserver-install.log
==============================================================================
This program will set up the FreeIPA Server.
Version 4.8.1
Expected results:
# ipa-server-install
The log file for this installation can be found in
/var/log/ipaserver-install.log
==============================================================================
This program will set up the FreeIPA Server.
Version 4.8.1
Additional info:

Python 3.8 change: https://bugs.python.org/issue34850


Metadata Update from @fcami:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1747895

Metadata Update from @fcami:
- Issue assigned to fcami

Metadata Update from @fcami:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3611

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.8.2

master:

  • 02262ac7cfa52926fd0c943ddf6e96269e90e218 ipapython/ipachangeconf.py: change "is not 0" for "!= 0"

ipa-4-8:

  • 79b9d59674e08250e8dd060ed3f1e9e56dd3ae38 ipapython/ipachangeconf.py: change "is not 0" for "!= 0"

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

master:

  • 4a437a3c422ee8a7b3dfee9a90abc2d9cc9e7990 config plugin: replace 'is 0' with '== 0'

master:

  • 8d2125f654268fa2b80c86af3b51b63fa02f6a69 Enable literal-comparison linter again
  • 0fc4b8c25cb4f1ee49cbf9b47610168b24a9ee56 Fix wrong use of identity operation
  • 0d7eb0a972b3031d7f28f71b1a768395a8127853 Add new env vars to pylint plugin

ipa-4-8:

  • 129adb40626a1b91269d71cc8f21d193f1e65c8c config plugin: replace 'is 0' with '== 0'

ipa-4-8:

  • 70302ab6f2051235df8f10d22cf2ae03688e4e98 Enable literal-comparison linter again
  • 4c17a9b9dbff30dc412bafdc54ac9832f021c37b Fix wrong use of identity operation
  • 576e2ce855e3cc8ae31752ecba0f3c5114e5bf7a Add new env vars to pylint plugin
Metadata