Author: Ronan Lamy <ronan.l...@gmail.com> Branch: py3.5 Changeset: r86666:c34251a385be Date: 2016-08-28 22:58 +0100 http://bitbucket.org/pypy/pypy/changeset/c34251a385be/
Log: hg merge py3k diff --git a/pypy/module/_sre/__init__.py b/pypy/module/_sre/__init__.py --- a/pypy/module/_sre/__init__.py +++ b/pypy/module/_sre/__init__.py @@ -1,4 +1,4 @@ -from pypy.interpreter.mixedmodule import MixedModule +from pypy.interpreter.mixedmodule import MixedModule class Module(MixedModule): @@ -7,7 +7,7 @@ interpleveldefs = { 'CODESIZE': 'space.wrap(interp_sre.CODESIZE)', - 'MAGIC': 'space.wrap(interp_sre.MAGIC)', + 'MAGIC': 'space.newint(20140917)', 'MAXREPEAT': 'space.wrap(interp_sre.MAXREPEAT)', 'MAXGROUPS': 'space.wrap(interp_sre.MAXGROUPS)', 'compile': 'interp_sre.W_SRE_Pattern', diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py --- a/pypy/module/_sre/interp_sre.py +++ b/pypy/module/_sre/interp_sre.py @@ -14,7 +14,7 @@ # Constants and exposed functions from rpython.rlib.rsre import rsre_core -from rpython.rlib.rsre.rsre_char import MAGIC, CODESIZE, MAXREPEAT, MAXGROUPS, getlower, set_unicode_db +from rpython.rlib.rsre.rsre_char import CODESIZE, MAXREPEAT, MAXGROUPS, getlower, set_unicode_db @unwrap_spec(char_ord=int, flags=int) diff --git a/pypy/module/signal/interp_signal.py b/pypy/module/signal/interp_signal.py --- a/pypy/module/signal/interp_signal.py +++ b/pypy/module/signal/interp_signal.py @@ -64,7 +64,7 @@ AsyncAction.__init__(self, space) self.pending_signal = -1 self.fire_in_another_thread = False - # + @rgc.no_collect def _after_thread_switch(): if self.fire_in_another_thread: diff --git a/rpython/rlib/rsre/rsre_char.py b/rpython/rlib/rsre/rsre_char.py --- a/rpython/rlib/rsre/rsre_char.py +++ b/rpython/rlib/rsre/rsre_char.py @@ -23,10 +23,6 @@ #### Constants -# Identifying as _sre from Python 2.3 and onwards (at least up to 2.7) -# UPDATE: change was necessary for Python 3.3 changes -MAGIC = 20140917 - if sys.maxint > 2**32: MAXREPEAT = int(2**32 - 1) MAXGROUPS = int(2**31 - 1) @@ -35,7 +31,7 @@ MAXGROUPS = int((2**31 / sys.maxint / 2) - 1) # In _sre.c this is bytesize of the code word type of the C implementation. -# There it's 2 for normal Python builds and more for wide unicode builds (large +# There it's 2 for normal Python builds and more for wide unicode builds (large # enough to hold a 32-bit UCS-4 encoded character). Since here in pure Python # we only see re bytecodes as Python longs, we shouldn't have to care about the # codesize. But sre_compile will compile some stuff differently depending on the _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit