diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2014-07-25 17:55:38 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2014-07-25 17:55:38 +0000 |
commit | 266cd7a368687223878d50e064b508e082597bf2 (patch) | |
tree | 507c182e93792d24a76003b07e9d5b5bf4eea6ff /dev-java/jython/files | |
parent | add myself as co-maintainer (diff) | |
download | gentoo-2-266cd7a368687223878d50e064b508e082597bf2.tar.gz gentoo-2-266cd7a368687223878d50e064b508e082597bf2.tar.bz2 gentoo-2-266cd7a368687223878d50e064b508e082597bf2.zip |
Revision bump, add patch copied from cpython standard libraries to fix problem with the re module.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
Diffstat (limited to 'dev-java/jython/files')
-rw-r--r-- | dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch b/dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch new file mode 100644 index 000000000000..944bb195cb38 --- /dev/null +++ b/dev-java/jython/files/jython-2.7_beta2-maxrepeat-import.patch @@ -0,0 +1,16 @@ +diff -r 035eded55c4d lib-python/2.7/sre_constants.py +--- a/lib-python/2.7/sre_constants.py Wed Apr 16 18:30:13 2014 -0600 ++++ b/lib-python/2.7/sre_constants.py Fri Jul 25 10:31:27 2014 -0700 +@@ -15,7 +15,11 @@ + + MAGIC = 20031017 + +-from _sre import MAXREPEAT ++try: ++ from _sre import MAXREPEAT ++except ImportError: ++ import _sre ++ MAXREPEAT = _sre.MAXREPEAT = 65535 + + # SRE standard exception (access as sre.error) + # should this really be here? |