Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56131:8fcdceac730e
Date: 2012-07-18 14:42 +0200
http://bitbucket.org/pypy/pypy/changeset/8fcdceac730e/
Log: another assert
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
@@ -594,6 +594,7 @@
padding = width - len(self)
if padding <= 0:
return w_self.create_if_subclassed()
+ assert width >= 0
result = [u'0'] * width
for i in range(len(self)):
result[padding + i] = self[i]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit