Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
3 deletions.
-
+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): |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.