[pypy-svn] pypy collections-module: Typos.
arigo
commits-noreply at bitbucket.org
Tue Feb 15 19:34:47 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: collections-module
Changeset: r41994:0c0ffacbf5ab
Date: 2011-02-15 19:33 +0100
http://bitbucket.org/pypy/pypy/changeset/0c0ffacbf5ab/
Log: Typos.
diff --git a/pypy/module/_collections/interp_deque.py b/pypy/module/_collections/interp_deque.py
--- a/pypy/module/_collections/interp_deque.py
+++ b/pypy/module/_collections/interp_deque.py
@@ -393,8 +393,8 @@
b, i = self.locate(start)
return b.data[i]
else:
- raise OperationError(self.w_TypeError,
- self.wrap("deque[:] is not supported"))
+ raise OperationError(space.w_TypeError,
+ space.wrap("deque[:] is not supported"))
@unwrap_spec('self', W_Root, W_Root)
def setitem(self, w_index, w_newobj):
@@ -404,8 +404,8 @@
b, i = self.locate(start)
b.data[i] = w_newobj
else:
- raise OperationError(self.w_TypeError,
- self.wrap("deque[:] is not supported"))
+ raise OperationError(space.w_TypeError,
+ space.wrap("deque[:] is not supported"))
@unwrap_spec('self', W_Root)
def delitem(self, w_index):
@@ -414,8 +414,8 @@
if step == 0: # index only
self.del_item(start)
else:
- raise OperationError(self.w_TypeError,
- self.wrap("deque[:] is not supported"))
+ raise OperationError(space.w_TypeError,
+ space.wrap("deque[:] is not supported"))
@unwrap_spec('self')
def copy(self):
More information about the Pypy-commit
mailing list