Fix bug in stackless support, remove prints, ad update the operating systems in setup.py
This commit is contained in:
@@ -44,10 +44,10 @@ except ImportError:
|
||||
greenlet = sys.modules['greenlet']
|
||||
except ImportError:
|
||||
try:
|
||||
import support.stackless
|
||||
support.stackless.emulate()
|
||||
import support.stacklesss
|
||||
support.stacklesss.emulate()
|
||||
greenlet = sys.modules['greenlet']
|
||||
except ImportError:
|
||||
except ImportError, e:
|
||||
raise ImportError("Unable to find an implementation of greenlet.")
|
||||
|
||||
|
||||
|
@@ -48,7 +48,7 @@ class FirstSwitch(object):
|
||||
self.gr = gr
|
||||
|
||||
def __call__(self, *args, **kw):
|
||||
print "first call", args, kw
|
||||
#print "first call", args, kw
|
||||
gr = self.gr
|
||||
del gr.switch
|
||||
run, gr.run = gr.run, None
|
||||
@@ -72,7 +72,7 @@ class greenlet(object):
|
||||
self.switch = FirstSwitch(self)
|
||||
|
||||
def switch(self, *args):
|
||||
print "switch", args
|
||||
#print "switch", args
|
||||
global caller
|
||||
caller = stackless.getcurrent()
|
||||
coro_args[self] = args
|
||||
|
2
setup.py
2
setup.py
@@ -22,6 +22,8 @@ setup(
|
||||
classifiers=[
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python",
|
||||
"Operating System :: MacOS :: MacOS X",
|
||||
"Operating System :: POSIX",
|
||||
"Topic :: Internet",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Intended Audience :: Developers",
|
||||
|
Reference in New Issue
Block a user