Skip to content

Fix offset condition#117

Merged
bimalkjha merged 1 commit intoibmdb:masterfrom
eonu:fix-offset-condition
Dec 27, 2022
Merged

Fix offset condition#117
bimalkjha merged 1 commit intoibmdb:masterfrom
eonu:fix-offset-condition

Conversation

@eonu
Copy link
Copy Markdown
Contributor

@eonu eonu commented Dec 7, 2022

is/is not should not be used for integer comparisons.

/Users/eonu/dev/python-ibmdbsa/ibm_db_sa/base.py:411: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if offset is not 0:
/Users/eonu/dev/python-ibmdbsa/ibm_db_sa/base.py:413: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if offset is not 0 and limit is not None:

Signed-off-by: Edwin Onuonga <ed@hazy.com>
@bimalkjha bimalkjha merged commit 781ef49 into ibmdb:master Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants