Skip to content
Permalink
Browse files

small style fixes

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 1, 2013
1 parent 2fdb0f4 commit 8733723991c3154b28d6a7390953afd3d6815b42
Showing with 6 additions and 6 deletions.
  1. +6 −6 topaz/objspace.py
@@ -706,18 +706,18 @@ def any_to_s(self, w_obj):

def obj_to_s(self, w_obj):
return self.str_w(self.send(w_obj, self.newsymbol("to_s")))

def compare(self, w_a, w_b, block=None):
if block is None:
w_cmp_res = self.send(w_a, self.newsymbol("<=>"), [w_b])
else:
w_cmp_res = self.invoke_block(block, [w_a, w_b])
if w_cmp_res is self.w_nil:
raise self.error(
self.w_ArgumentError,
"comparison of %s with %s failed" %
(self.obj_to_s(self.getclass(w_a)),
self.obj_to_s(self.getclass(w_b)))
raise self.error(self.w_ArgumentError,
"comparison of %s with %s failed" % (
self.obj_to_s(self.getclass(w_a)),
self.obj_to_s(self.getclass(w_b)),
)
)
else:
return w_cmp_res

0 comments on commit 8733723

Please sign in to comment.
You can’t perform that action at this time.