[pypy-commit] pypy default: rename again
fijal
noreply at buildbot.pypy.org
Sun Feb 8 21:00:26 CET 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r75774:458ebd4ba792
Date: 2015-02-08 22:00 +0200
http://bitbucket.org/pypy/pypy/changeset/458ebd4ba792/
Log: rename again
diff --git a/pypy/interpreter/unicodehelper.py b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -16,7 +16,7 @@
space.wrap(msg)]))
return raise_unicode_exception_decode
-class RPyUnicodeEncodeError(Exception):
+class RUnicodeEncodeError(Exception):
def __init__(self, encoding, object, start, end, reason):
self.encoding = encoding
self.object = object
@@ -29,7 +29,7 @@
# Fast version of the "strict" errors handler.
def raise_unicode_exception_encode(errors, encoding, msg, u,
startingpos, endingpos):
- raise AppUnicodeEncodeError(encoding, u, startingpos, endingpos, msg)
+ raise RUnicodeEncodeError(encoding, u, startingpos, endingpos, msg)
return raise_unicode_exception_encode
# ____________________________________________________________
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
@@ -448,7 +448,7 @@
return space.wrap(unicode_encode_utf_8(
u, len(u), None, errorhandler=eh,
allow_surrogates=True))
- except unicodehelper.RPyUnicodeEncodeError, ue:
+ except unicodehelper.RUnicodeEncodeError, ue:
raise OperationError(space.w_UnicodeEncodeError,
space.newtuple([
space.wrap(ue.encoding),
More information about the pypy-commit
mailing list