Commit 4669715e authored by Fantix King's avatar Fantix King Committed by Denis Bilenko

baseserver.py: use integer_types

parent 86afa0ad
......@@ -86,7 +86,7 @@ class BaseServer(object):
elif hasattr(spawn, 'spawn'):
self.pool = spawn
self._spawn = spawn.spawn
elif isinstance(spawn, (int, long)):
elif isinstance(spawn, integer_types):
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