Commit 1929deda authored by Denis Bilenko's avatar Denis Bilenko

pool: make GreenletSet a function which raises deprecation warning

--HG--
extra : transplant_source : 5%7F%2BS%969%84%0B%A9%AE%13%12%3Ec%19%EF%F2nm%84
parent 7dab4d85
...@@ -203,7 +203,10 @@ class Group(object): ...@@ -203,7 +203,10 @@ class Group(object):
pass 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): 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