Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56146:f4c7930e7e9f
Date: 2012-07-18 15:12 +0200
http://bitbucket.org/pypy/pypy/changeset/f4c7930e7e9f/
Log: another one
diff --git a/pypy/objspace/std/bytearrayobject.py
b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -164,6 +164,8 @@
raise FailedToImplement
raise
data = w_bytearray.data
+ if times < 0:
+ times = 0
return W_BytearrayObject(data * times)
def mul__Bytearray_ANY(space, w_bytearray, w_times):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit