#8057 Running ipa-server-install produces SyntaxWarning: "is not" with a literal. Did you mean "!="?
Closed: fixed 4 years ago by frenaud. Opened 4 years ago 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

4 years ago

Metadata Update from @fcami:
- Issue assigned to fcami

4 years ago

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

4 years ago

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

4 years ago

master:

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

ipa-4-8:

  • 79b9d59 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)

4 years ago

master:

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

master:

  • 8d2125f Enable literal-comparison linter again
  • 0fc4b8c Fix wrong use of identity operation
  • 0d7eb0a Add new env vars to pylint plugin

ipa-4-8:

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

ipa-4-8:

  • 70302ab Enable literal-comparison linter again
  • 4c17a9b Fix wrong use of identity operation
  • 576e2ce Add new env vars to pylint plugin

Login to comment on this ticket.

Metadata