ndexbio / ndex2-client

NDEx2 Client
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

import ndex2 outputs warnings in python3.9 #92

Closed coleslaw481 closed 9 months ago

coleslaw481 commented 2 years ago

Running import ndex2 output these warnings in python 3.9

import ndex2
/Users/churas/src/ndex2-client/ndex2/nice_cx_network.py:1894: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if mi.get("consistencyGroup" is not None):
/Users/churas/src/ndex2-client/ndex2/client.py:438: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(cx) is 0:
/Users/churas/src/ndex2-client/ndex2/client.py:527: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(cx) is 0:
coleslaw481 commented 1 year ago

Fixed the 1st two in 3.5.1

coleslaw481 commented 9 months ago

Finally fixed in 188eb38..8da1961 master -> master