From 70df105cfc2076fa1ab5da4ca9494f2086a339ad Mon Sep 17 00:00:00 2001 From: donovan Date: Wed, 11 Jun 2008 15:01:22 -0700 Subject: [PATCH] Fix bug in stackless support, remove prints, ad update the operating systems in setup.py --- eventlet/api.py | 6 +++--- eventlet/support/stacklesss.py | 4 ++-- setup.py | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/eventlet/api.py b/eventlet/api.py index 1d28248..265cb8c 100644 --- a/eventlet/api.py +++ b/eventlet/api.py @@ -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.") diff --git a/eventlet/support/stacklesss.py b/eventlet/support/stacklesss.py index 8e97555..5220cb6 100644 --- a/eventlet/support/stacklesss.py +++ b/eventlet/support/stacklesss.py @@ -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 diff --git a/setup.py b/setup.py index b166432..bd3f020 100644 --- a/setup.py +++ b/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",