Commit acaaac89 authored by Denis Bilenko's avatar Denis Bilenko

baseserver: accept 'long' arguments in addition to 'int'

parent ba938cd6
......@@ -66,7 +66,7 @@ class BaseServer(object):
elif hasattr(spawn, 'spawn'):
self.pool = spawn
self._spawn = spawn.spawn
elif isinstance(spawn, int):
elif isinstance(spawn, (int, long)):
from gevent.pool import Pool
self.pool = Pool(spawn)
self._spawn = self.pool.spawn
......
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