[pypy-commit] pypy virtual-arguments: backout b33078c40d3d
fijal
noreply at buildbot.pypy.org
Fri Jul 20 10:48:26 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56279:549c74205869
Date: 2012-07-20 10:46 +0200
http://bitbucket.org/pypy/pypy/changeset/549c74205869/
Log: backout b33078c40d3d
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
@@ -557,7 +557,6 @@
if padding < 0:
return w_self.create_if_subclassed()
leftpad = padding // 2 + (padding & width & 1)
- assert width >= 0
result = [fillchar] * width
for i in range(len(self)):
result[leftpad + i] = self[i]
@@ -570,7 +569,6 @@
padding = width - len(self)
if padding < 0:
return w_self.create_if_subclassed()
- assert width >= 0
result = [fillchar] * width
for i in range(len(self)):
result[i] = self[i]
@@ -583,7 +581,6 @@
padding = width - len(self)
if padding < 0:
return w_self.create_if_subclassed()
- assert width >= 0
result = [fillchar] * width
for i in range(len(self)):
result[padding + i] = self[i]
@@ -593,8 +590,6 @@
self = w_self._value
width = space.int_w(w_width)
if len(self) == 0:
- if width < 0:
- width = 0
return W_UnicodeObject(u'0' * width)
padding = width - len(self)
if padding <= 0:
More information about the pypy-commit
mailing list