Commits

Denis Bilenko committed c460079

make shutdown() work on Python 2.4

  • Participants
  • Parent commits 6dce0a5
  • Tags 0.9.3

Comments (0)

Files changed (1)

File gevent/greenlet.py

         try:
             get_hub().switch()
         except DispatchExit, ex:
-            if ex.message == 1:
+            if ex.code == 1:
                 return
             raise
 
 
 class DispatchExit(Exception):
-    pass
+    
+    def __init__(self, code):
+        self.code = code
+        Exception.__init__(self, code)
 
 
 def _wait_helper(ev, evtype):