Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SyntaxWarning: "is not" with a literal message in Cirrus log #106

@irenewhlee

Description

@irenewhlee

When our Django server start there are syntax warning messages showed in the Cirrus log for the query.py in the ibm_db_django package. Please could you help resolve? The warning message has been added in python 3.8+. Thank you.

Cirrus log message:
/workspace/cloned-git-repository/cio-ci-cd-venv/lib64/python3.11/site-packages/ibm_db_django/query.py:86:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.low_mark is not 0:
if self.low_mark is not 0 and self.high_mark is not None:

Reference: https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions