From 9fad8ab6f5289f9077c62e095ec6b5ed597c18c4 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 5 Feb 2017 01:24:49 +0300 Subject: [PATCH] Remove outdated documentation about using entry points Closes #1365 --- docs/source/settings.rst | 7 ++----- examples/example_config.py | 11 +++-------- gunicorn/config.py | 7 ++----- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index 4a50f9c5..a180dd57 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -127,8 +127,7 @@ A string referring to one of the following bundled classes: Optionally, you can provide your own worker by giving Gunicorn a Python path to a subclass of ``gunicorn.workers.base.Worker``. This alternative syntax will load the gevent class: -``gunicorn.workers.ggevent.GeventWorker``. Alternatively, the syntax -can also load the gevent class with ``egg:gunicorn#gevent``. +``gunicorn.workers.ggevent.GeventWorker``. .. _threads: @@ -671,10 +670,8 @@ The logger you want to use to log events in Gunicorn. The default class (``gunicorn.glogging.Logger``) handle most of normal usages in logging. It provides error and access logging. -You can provide your own worker by giving Gunicorn a +You can provide your own logger by giving Gunicorn a Python path to a subclass like ``gunicorn.glogging.Logger``. -Alternatively the syntax can also load the Logger class -with ``egg:gunicorn#simple``. .. _logconfig: diff --git a/examples/example_config.py b/examples/example_config.py index 70c2645f..bbdf257a 100644 --- a/examples/example_config.py +++ b/examples/example_config.py @@ -38,15 +38,10 @@ backlog = 2048 # for information on when you might want to choose one # of the other worker classes. # -# An string referring to a 'gunicorn.workers' entry point -# or a python path to a subclass of +# A string referring to a Python path to a subclass of # gunicorn.workers.base.Worker. The default provided values -# are: -# -# egg:gunicorn#sync -# egg:gunicorn#eventlet - Requires eventlet >= 0.9.7 -# egg:gunicorn#gevent - Requires gevent >= 0.12.2 (?) -# egg:gunicorn#tornado - Requires tornado >= 0.2 +# can be seen at +# http://docs.gunicorn.org/en/latest/settings.html#worker-class # # worker_connections - For the eventlet and gevent worker classes # this limits the maximum number of simultaneous clients that diff --git a/gunicorn/config.py b/gunicorn/config.py index 37eae21e..bdfa3418 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -632,8 +632,7 @@ class WorkerClass(Setting): Optionally, you can provide your own worker by giving Gunicorn a Python path to a subclass of ``gunicorn.workers.base.Worker``. This alternative syntax will load the gevent class: - ``gunicorn.workers.ggevent.GeventWorker``. Alternatively, the syntax - can also load the gevent class with ``egg:gunicorn#gevent``. + ``gunicorn.workers.ggevent.GeventWorker``. """ class WorkerThreads(Setting): @@ -1249,10 +1248,8 @@ class LoggerClass(Setting): The default class (``gunicorn.glogging.Logger``) handle most of normal usages in logging. It provides error and access logging. - You can provide your own worker by giving Gunicorn a + You can provide your own logger by giving Gunicorn a Python path to a subclass like ``gunicorn.glogging.Logger``. - Alternatively the syntax can also load the Logger class - with ``egg:gunicorn#simple``. """