[pypy-commit] pypy virtual-arguments: another assert

fijal noreply at buildbot.pypy.org
Wed Jul 18 14:42:51 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
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]


More information about the pypy-commit mailing list