aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2021-02-26 14:09:59 +0100
committerCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2021-02-26 14:09:59 +0100
commit7481cba614e823e51ff56e9300c285ea028ed5b0 (patch)
tree20075b41d963ff6b93f9d56dc172e40d884a34b5
parentmaxsplit -> maxcount for replace functions (diff)
downloadpypy-7481cba614e823e51ff56e9300c285ea028ed5b0.tar.gz
pypy-7481cba614e823e51ff56e9300c285ea028ed5b0.tar.bz2
pypy-7481cba614e823e51ff56e9300c285ea028ed5b0.zip
fix translation
-rw-r--r--pypy/objspace/std/unicodeobject.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py
index 1b7a8d07b4..4fa1a98437 100644
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -884,6 +884,7 @@ class W_UnicodeObject(W_Root):
return self
newlength = self._length + replacements * (w_by._length - w_sub._length)
+ assert res is not None
return W_UnicodeObject(res, newlength)
def descr_mul(self, space, w_times):