[Jython-checkins] jython: Add MAXREPEAT to _sre.
frank.wierzbicki
jython-checkins at python.org
Mon Mar 11 18:23:43 CET 2013
http://hg.python.org/jython/rev/c2a08a8868cc
changeset: 7075:c2a08a8868cc
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Fri Mar 08 16:18:44 2013 -0800
summary:
Add MAXREPEAT to _sre.
files:
src/org/python/modules/_sre.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/org/python/modules/_sre.java b/src/org/python/modules/_sre.java
--- a/src/org/python/modules/_sre.java
+++ b/src/org/python/modules/_sre.java
@@ -22,6 +22,9 @@
public class _sre {
public static int MAGIC = SRE_STATE.SRE_MAGIC;
+ // probably the right number for Jython since we are UTF-16.
+ public static int MAXREPEAT = 65535;
+
// workaround the fact that H, I types are unsigned, but we are not really using them as such
// XXX: May not be the right size, but I suspect it is -- see sre_compile.py
public static int CODESIZE = 4;
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list