summaryrefslogtreecommitdiff
path: root/dev-python/pyzmq/files/pyzmq-2.2.0.1-python3.patch
blob: d6b1299add7ae69f7264c1716f022f9c5a7cec47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 51f2470bce6c9e6067606aec2d9a018555582b30 Mon Sep 17 00:00:00 2001
From: MinRK <benjaminrk@gmail.com>
Date: Mon, 20 Aug 2012 22:44:27 -0700
Subject: [PATCH] fix exception syntax in gevent.core

---
 zmq/green/core.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zmq/green/core.py b/zmq/green/core.py
index d4e5f73..9e5acdf 100644
--- a/zmq/green/core.py
+++ b/zmq/green/core.py
@@ -114,7 +114,7 @@ def _wait_write(self):
         try:
             timeout.start()
             self.__writable.get(block=True)
-        except gevent.Timeout, t:
+        except gevent.Timeout as t:
             if t is not timeout:
                 raise
             toc = time.time()
@@ -138,7 +138,7 @@ def _wait_read(self):
         try:
             timeout.start()
             self.__readable.get(block=True)
-        except gevent.Timeout, t:
+        except gevent.Timeout as t:
             if t is not timeout:
                 raise
             toc = time.time()
-- 
1.7.10