def closeCursorCommit ( self, cursor ):
    """Close the cursor if we are not in a transaction"""

    if self.cursor not in None:
      self.conn.commit()
      cursor.close()
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.closeCursorCommit/operator `is` -> `not in`