
import sys

# supported gunicorn workers.
SUPPORTED_WORKERS = {
    "sync": "gunicorn.workers.sync.SyncWorker",
    "eventlet": "gunicorn.workers.geventlet.EventletWorker",
    "gevent": "gunicorn.workers.ggevent.GeventWorker",
    "gevent_wsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "gevent_pywsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "tornado": "gunicorn.workers.gtornado.TornadoWorker"}


if sys.version_info >= (3, 3):
    # gaiohttp worker can be used with Python 3.3+ only.
    SUPPORTED_WORKERS["gaiohttp"] = "gunicorn.workers.gaiohttp.AiohttpWorker"


import sys

# supported gunicorn workers.
SUPPORTED_WORKERS = {
    "sync": "gunicorn.workers.sync.SyncWorker",
    "eventlet": "gunicorn.workers.geventlet.EventletWorker",
    "gevent": "gunicorn.workers.ggevent.GeventWorker",
    "gevent_wsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "gevent_pywsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "tornado": "gunicorn.workers.gtornado.TornadoWorker",
    "gthread": "gunicorn.workers.gthread.ThreadWorker",
}


if sys.version_info >= (3, 3):
    # gaiohttp worker can be used with Python 3.3+ only.
    SUPPORTED_WORKERS["gaiohttp"] = "gunicorn.workers.gaiohttp.AiohttpWorker"

Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS dictionary
Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS dictionary

Fixes #1011.

  
  import sys
  
  # supported gunicorn workers.
  SUPPORTED_WORKERS = {
      "sync": "gunicorn.workers.sync.SyncWorker",
      "eventlet": "gunicorn.workers.geventlet.EventletWorker",
      "gevent": "gunicorn.workers.ggevent.GeventWorker",
      "gevent_wsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
      "gevent_pywsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
-     "tornado": "gunicorn.workers.gtornado.TornadoWorker"}
+     "tornado": "gunicorn.workers.gtornado.TornadoWorker",
+     "gthread": "gunicorn.workers.gthread.ThreadWorker",
+ }
  
  
  if sys.version_info >= (3, 3):
      # gaiohttp worker can be used with Python 3.3+ only.
      SUPPORTED_WORKERS["gaiohttp"] = "gunicorn.workers.gaiohttp.AiohttpWorker"
  
Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS dictionary
## Code Before:

import sys

# supported gunicorn workers.
SUPPORTED_WORKERS = {
    "sync": "gunicorn.workers.sync.SyncWorker",
    "eventlet": "gunicorn.workers.geventlet.EventletWorker",
    "gevent": "gunicorn.workers.ggevent.GeventWorker",
    "gevent_wsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "gevent_pywsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "tornado": "gunicorn.workers.gtornado.TornadoWorker"}


if sys.version_info >= (3, 3):
    # gaiohttp worker can be used with Python 3.3+ only.
    SUPPORTED_WORKERS["gaiohttp"] = "gunicorn.workers.gaiohttp.AiohttpWorker"

## Instruction:
Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS dictionary
## Code After:

import sys

# supported gunicorn workers.
SUPPORTED_WORKERS = {
    "sync": "gunicorn.workers.sync.SyncWorker",
    "eventlet": "gunicorn.workers.geventlet.EventletWorker",
    "gevent": "gunicorn.workers.ggevent.GeventWorker",
    "gevent_wsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "gevent_pywsgi": "gunicorn.workers.ggevent.GeventPyWSGIWorker",
    "tornado": "gunicorn.workers.gtornado.TornadoWorker",
    "gthread": "gunicorn.workers.gthread.ThreadWorker",
}


if sys.version_info >= (3, 3):
    # gaiohttp worker can be used with Python 3.3+ only.
    SUPPORTED_WORKERS["gaiohttp"] = "gunicorn.workers.gaiohttp.AiohttpWorker"
