Skip to content
Permalink
Browse files

simplify code

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Mar 19, 2013
1 parent 1b31c75 commit ee7431be9c16fc0fd1c941886a200c619dcaf235
Showing with 3 additions and 3 deletions.
  1. +3 −3 topaz/modules/kernel.py
@@ -300,9 +300,9 @@ def method_is_kind_ofp(self, space, w_mod):

@moduledef.method("instance_of?")
def method_instance_of(self, space, w_mod):
if isinstance(w_mod, W_ClassObject) or isinstance(w_mod, W_ModuleObject):
return space.newbool(space.getnonsingletonclass(self) is w_mod)
raise space.error(space.w_TypeError, "class or module required")
if not isinstance(w_mod, W_ModuleObject):
raise space.error(space.w_TypeError, "class or module required")
return space.newbool(space.getnonsingletonclass(self) is w_mod)

@moduledef.method("eval")
def method_eval(self, space, w_source):

0 comments on commit ee7431b

Please sign in to comment.