Fix bug in stackless support, remove prints, ad update the operating systems in setup.py

This commit is contained in:
donovan
2008-06-11 15:01:22 -07:00
parent bc10f2887d
commit 70df105cfc
3 changed files with 7 additions and 5 deletions

View File

@@ -44,10 +44,10 @@ except ImportError:
greenlet = sys.modules['greenlet'] greenlet = sys.modules['greenlet']
except ImportError: except ImportError:
try: try:
import support.stackless import support.stacklesss
support.stackless.emulate() support.stacklesss.emulate()
greenlet = sys.modules['greenlet'] greenlet = sys.modules['greenlet']
except ImportError: except ImportError, e:
raise ImportError("Unable to find an implementation of greenlet.") raise ImportError("Unable to find an implementation of greenlet.")

View File

@@ -48,7 +48,7 @@ class FirstSwitch(object):
self.gr = gr self.gr = gr
def __call__(self, *args, **kw): def __call__(self, *args, **kw):
print "first call", args, kw #print "first call", args, kw
gr = self.gr gr = self.gr
del gr.switch del gr.switch
run, gr.run = gr.run, None run, gr.run = gr.run, None
@@ -72,7 +72,7 @@ class greenlet(object):
self.switch = FirstSwitch(self) self.switch = FirstSwitch(self)
def switch(self, *args): def switch(self, *args):
print "switch", args #print "switch", args
global caller global caller
caller = stackless.getcurrent() caller = stackless.getcurrent()
coro_args[self] = args coro_args[self] = args

View File

@@ -22,6 +22,8 @@ setup(
classifiers=[ classifiers=[
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python", "Programming Language :: Python",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Topic :: Internet", "Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers", "Intended Audience :: Developers",