Author: Matti Picus <matti.pi...@gmail.com> Branch: unicode-utf8 Changeset: r95619:baef7e3e3ac0 Date: 2019-01-11 15:56 +0200 http://bitbucket.org/pypy/pypy/changeset/baef7e3e3ac0/
Log: remove untranslated check for unicode object creation diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py --- a/pypy/objspace/std/unicodeobject.py +++ b/pypy/objspace/std/unicodeobject.py @@ -41,15 +41,6 @@ self._utf8 = utf8str self._length = length self._index_storage = rutf8.null_storage() - # XXX checking, remove before any performance measurments - # ifdef not_running_in_benchmark - if not we_are_translated(): - try: - lgt = rutf8.check_utf8(utf8str, True) - assert lgt == length - except: - # array.array can return invalid unicode - pass @staticmethod def from_utf8builder(builder): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit