aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):