import logger
logger.configure()

import guv
guv.monkey_patch()

import logging

from cassandra import cluster

log = logging.getLogger()


def main():
    nodes = ['192.168.20.2']

    c = cluster.Cluster(nodes, port=9042)
    session = c.connect('test')
    log.info('Execute commands')
    rows = session.execute('SELECT * FROM numbers')

    for row in rows:
        log.info(row)

    log.warn('Cassandra support is currently incomplete and buggy.')
    c.shutdown()


if __name__ == '__main__':
    main()


import guv

guv.monkey_patch()

import logger

logger.configure()

import logging

from cassandra import cluster

log = logging.getLogger()


def main():
    nodes = ['192.168.20.2']

    c = cluster.Cluster(nodes, port=9042)
    session = c.connect('test')
    log.info('Execute commands')
    rows = session.execute('SELECT * FROM numbers')

    for row in rows:
        log.info(row)

    c.shutdown()


if __name__ == '__main__':
    main()


Remove warning message (now fixed)
Remove warning message (now fixed)

+ import guv
+ 
+ guv.monkey_patch()
+ 
  import logger
+ 
  logger.configure()
- 
- import guv
- guv.monkey_patch()
  
  import logging
  
  from cassandra import cluster
  
  log = logging.getLogger()
  
  
  def main():
      nodes = ['192.168.20.2']
  
      c = cluster.Cluster(nodes, port=9042)
      session = c.connect('test')
      log.info('Execute commands')
      rows = session.execute('SELECT * FROM numbers')
  
      for row in rows:
          log.info(row)
  
-     log.warn('Cassandra support is currently incomplete and buggy.')
      c.shutdown()
  
  
  if __name__ == '__main__':
      main()
  
  
Remove warning message (now fixed)
## Code Before:
import logger
logger.configure()

import guv
guv.monkey_patch()

import logging

from cassandra import cluster

log = logging.getLogger()


def main():
    nodes = ['192.168.20.2']

    c = cluster.Cluster(nodes, port=9042)
    session = c.connect('test')
    log.info('Execute commands')
    rows = session.execute('SELECT * FROM numbers')

    for row in rows:
        log.info(row)

    log.warn('Cassandra support is currently incomplete and buggy.')
    c.shutdown()


if __name__ == '__main__':
    main()


## Instruction:
Remove warning message (now fixed)
## Code After:
import guv

guv.monkey_patch()

import logger

logger.configure()

import logging

from cassandra import cluster

log = logging.getLogger()


def main():
    nodes = ['192.168.20.2']

    c = cluster.Cluster(nodes, port=9042)
    session = c.connect('test')
    log.info('Execute commands')
    rows = session.execute('SELECT * FROM numbers')

    for row in rows:
        log.info(row)

    c.shutdown()


if __name__ == '__main__':
    main()

