Skip to content
Permalink
Browse files

constant fold and fix arguments

  • Loading branch information
alex committed Jun 19, 2013
1 parent b4aa607 commit 34a41ead3ebc07c885fe4146931667b8ffe9bc62
Showing with 3 additions and 3 deletions.
  1. +1 −1 topaz/modules/kernel.py
  2. +1 −1 topaz/objects/classobject.py
  3. +1 −1 topaz/objects/moduleobject.py
@@ -43,7 +43,7 @@ def method_singleton_methods(self, space, all=True):
def method_methods(self, space, inherit=True):
w_cls = space.getclass(self)

return space.newarray([space.newsymbol(m) for m in w_cls.methods(space, inherit)])
return space.newarray([space.newsymbol(m) for m in w_cls.methods(space, inherit=inherit)])

@moduledef.method("lambda")
def function_lambda(self, space, block):
@@ -82,7 +82,7 @@ def methods(self, space, visibility=None, inherit=True):
for name in W_ModuleObject.methods(self, space, inherit=inherit, visibility=visibility):
methods[name] = None
if inherit and self.superclass is not None:
for name in self.superclass.methods(space, inherit=inherit, visibility=visibility):
for name in self.superclass.methods(space, visibility=visibility):
method = self._find_method_pure(space, name, self.version)
if method is None or not isinstance(method, UndefMethod):
methods[name] = None
@@ -171,7 +171,7 @@ def methods(self, space, visibility=None, inherit=True):

if inherit:
for w_mod in self.included_modules:
for name in w_mod.methods(space, inherit=inherit, visibility=visibility):
for name in w_mod.methods(space, visibility=visibility):
method = self._find_method_pure(space, name, self.version)
if method is None or not isinstance(method, UndefMethod):
methods[name] = None

0 comments on commit 34a41ea

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