From: | "Patrick McLean (chutzpah)" <chutzpah@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-java/jython/files: jython-2.7_beta2-maxrepeat-import.patch |
Date: | Fri, 25 Jul 2014 17:55:48 |
Message-Id: | 20140725175538.E66542004F@flycatcher.gentoo.org |
1 | chutzpah 14/07/25 17:55:38 |
2 | |
3 | Added: jython-2.7_beta2-maxrepeat-import.patch |
4 | Log: |
5 | Revision bump, add patch copied from cpython standard libraries to fix problem with the re module. |
6 | |
7 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: jython-2.7_beta2-maxrepeat-import.patch |
16 | =================================================================== |
17 | diff -r 035eded55c4d lib-python/2.7/sre_constants.py |
18 | --- a/lib-python/2.7/sre_constants.py Wed Apr 16 18:30:13 2014 -0600 |
19 | +++ b/lib-python/2.7/sre_constants.py Fri Jul 25 10:31:27 2014 -0700 |
20 | @@ -15,7 +15,11 @@ |
21 | |
22 | MAGIC = 20031017 |
23 | |
24 | -from _sre import MAXREPEAT |
25 | +try: |
26 | + from _sre import MAXREPEAT |
27 | +except ImportError: |
28 | + import _sre |
29 | + MAXREPEAT = _sre.MAXREPEAT = 65535 |
30 | |
31 | # SRE standard exception (access as sre.error) |
32 | # should this really be here? |