From: | "Mike Gilbert (floppym)" <floppym@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pyzmq/files: pyzmq-2.2.0.1-python3.patch |
Date: | Wed, 29 Aug 2012 17:11:42 |
Message-Id: | 20120829171131.E0E0F20B77@flycatcher.gentoo.org |
1 | floppym 12/08/29 17:11:31 |
2 | |
3 | Added: pyzmq-2.2.0.1-python3.patch |
4 | Log: |
5 | Apply patch to fix exception syntax and unrestrict python 3. |
6 | |
7 | (Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/pyzmq/files/pyzmq-2.2.0.1-python3.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyzmq/files/pyzmq-2.2.0.1-python3.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyzmq/files/pyzmq-2.2.0.1-python3.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: pyzmq-2.2.0.1-python3.patch |
16 | =================================================================== |
17 | From 51f2470bce6c9e6067606aec2d9a018555582b30 Mon Sep 17 00:00:00 2001 |
18 | From: MinRK <benjaminrk@×××××.com> |
19 | Date: Mon, 20 Aug 2012 22:44:27 -0700 |
20 | Subject: [PATCH] fix exception syntax in gevent.core |
21 | |
22 | --- |
23 | zmq/green/core.py | 4 ++-- |
24 | 1 file changed, 2 insertions(+), 2 deletions(-) |
25 | |
26 | diff --git a/zmq/green/core.py b/zmq/green/core.py |
27 | index d4e5f73..9e5acdf 100644 |
28 | --- a/zmq/green/core.py |
29 | +++ b/zmq/green/core.py |
30 | @@ -114,7 +114,7 @@ def _wait_write(self): |
31 | try: |
32 | timeout.start() |
33 | self.__writable.get(block=True) |
34 | - except gevent.Timeout, t: |
35 | + except gevent.Timeout as t: |
36 | if t is not timeout: |
37 | raise |
38 | toc = time.time() |
39 | @@ -138,7 +138,7 @@ def _wait_read(self): |
40 | try: |
41 | timeout.start() |
42 | self.__readable.get(block=True) |
43 | - except gevent.Timeout, t: |
44 | + except gevent.Timeout as t: |
45 | if t is not timeout: |
46 | raise |
47 | toc = time.time() |
48 | -- |
49 | 1.7.10 |