Commit 7af7984c authored by Denis Bilenko's avatar Denis Bilenko

pool: make GreenletSet a function which raises deprecation warning

parent 26209cfe
......@@ -203,7 +203,10 @@ class Group(object):
pass
GreenletSet = Group # the old name; will be deprecated in the future
def GreenletSet(*args, **kwargs):
import warnings
warnings.warn("gevent.pool.GreenletSet was renamed to gevent.pool.Group since version 0.13.0", DeprecationWarning, stacklevel=2)
return Group(*args, **kwargs)
class Pool(Group):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment