[pypy-commit] pypy default: Fix typo and indentation in error messages
amauryfa
noreply at buildbot.pypy.org
Fri Oct 7 00:56:29 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r47845:167c86d2b1e3
Date: 2011-10-06 22:45 +0200
http://bitbucket.org/pypy/pypy/changeset/167c86d2b1e3/
Log: Fix typo and indentation in error messages
diff --git a/pypy/module/__pypy__/interp_builders.py b/pypy/module/__pypy__/interp_builders.py
--- a/pypy/module/__pypy__/interp_builders.py
+++ b/pypy/module/__pypy__/interp_builders.py
@@ -16,7 +16,8 @@
def _check_done(self, space):
if self.builder is None:
- raise OperationError(space.w_ValueError, space.wrap("Can't operate on a done builder"))
+ raise OperationError(space.w_ValueError, space.wrap(
+ "Can't operate on a built builder"))
@unwrap_spec(size=int)
def descr__new__(space, w_subtype, size=-1):
@@ -31,7 +32,8 @@
def descr_append_slice(self, space, s, start, end):
self._check_done(space)
if not 0 <= start <= end <= len(s):
- raise OperationError(space.w_ValueError, space.wrap("bad start/stop"))
+ raise OperationError(space.w_ValueError, space.wrap(
+ "bad start/stop"))
self.builder.append_slice(s, start, end)
def descr_build(self, space):
@@ -42,8 +44,8 @@
def descr_len(self, space):
if self.builder is None:
- raise OperationError(space.w_ValueError,
- space.wrap('no lenght of built builder'))
+ raise OperationError(space.w_ValueError, space.wrap(
+ "no length of built builder"))
return space.wrap(self.builder.getlength())
W_Builder.__name__ = "W_%s" % name
More information about the pypy-commit
mailing list