Skip to content
Permalink
Browse files

fix setting visibility

  • Loading branch information
alex committed Jun 15, 2013
1 parent 02ec091 commit a09823c3727cc40b24448933d1ef6c1d2d5444fe
Showing with 3 additions and 0 deletions.
  1. +3 −0 topaz/objects/moduleobject.py
@@ -324,6 +324,9 @@ def set_default_visibility(self, space, visibility):

def set_method_visibility(self, space, name, visibility):
w_method = self.find_method(space, name)
if w_method is None or isinstance(w_method, UndefMethod):
w_method = space.w_object.find_method(space, name)

if w_method is None or isinstance(w_method, UndefMethod):
cls_name = space.obj_to_s(self)
raise space.error(space.w_NameError,

0 comments on commit a09823c

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