import sys

from utils import module_exists

from gevent import monkey


def make_django_green():
    monkey.patch_all()

    if module_exists('psycogreen'):
        from psycogreen.gevent.psyco_gevent import make_psycopg_green
        make_psycopg_green()

    if module_exists('pymysql'):
        import pymysql
        pymysql.install_as_MySQLdb()

    if module_exists('zmq'):
        from gevent_zeromq import zmq
        sys.modules["zmq"] = zmq

import sys

from utils import module_exists

from gevent import monkey


def make_django_green():
    monkey.patch_all()

    if module_exists('psycogreen'):
        from psycogreen.gevent.psyco_gevent import make_psycopg_green
        make_psycopg_green()

    if module_exists('pymysql'):
        import pymysql
        pymysql.install_as_MySQLdb()

    if module_exists('gevent_zeromq'):
        from gevent_zeromq import zmq
        sys.modules["zmq"] = zmq

Check for greened package - consistency
Check for greened package - consistency

  import sys
  
  from utils import module_exists
  
  from gevent import monkey
  
  
  def make_django_green():
      monkey.patch_all()
  
      if module_exists('psycogreen'):
          from psycogreen.gevent.psyco_gevent import make_psycopg_green
          make_psycopg_green()
  
      if module_exists('pymysql'):
          import pymysql
          pymysql.install_as_MySQLdb()
  
-     if module_exists('zmq'):
+     if module_exists('gevent_zeromq'):
          from gevent_zeromq import zmq
          sys.modules["zmq"] = zmq
  
Check for greened package - consistency
## Code Before:
import sys

from utils import module_exists

from gevent import monkey


def make_django_green():
    monkey.patch_all()

    if module_exists('psycogreen'):
        from psycogreen.gevent.psyco_gevent import make_psycopg_green
        make_psycopg_green()

    if module_exists('pymysql'):
        import pymysql
        pymysql.install_as_MySQLdb()

    if module_exists('zmq'):
        from gevent_zeromq import zmq
        sys.modules["zmq"] = zmq

## Instruction:
Check for greened package - consistency
## Code After:
import sys

from utils import module_exists

from gevent import monkey


def make_django_green():
    monkey.patch_all()

    if module_exists('psycogreen'):
        from psycogreen.gevent.psyco_gevent import make_psycopg_green
        make_psycopg_green()

    if module_exists('pymysql'):
        import pymysql
        pymysql.install_as_MySQLdb()

    if module_exists('gevent_zeromq'):
        from gevent_zeromq import zmq
        sys.modules["zmq"] = zmq
