Skip to content
Permalink
Browse files

A few small improvements.

  • Loading branch information
Alex Gaynor
Alex Gaynor committed May 11, 2013
1 parent 3a25b84 commit 16b94d4980ff103e82e9fc18d2e2a919b5e25be8
Showing with 3 additions and 3 deletions.
  1. +3 −3 topaz/objects/moduleobject.py
@@ -184,7 +184,7 @@ def find_included_const(self, space, name):

def included_constants(self, space):
consts = {}
for const in self.constants_w.keys():
for const in self.constants_w:
consts[const] = None
for w_mod in self.included_modules:
for const in w_mod.included_constants(space):
@@ -500,12 +500,12 @@ def method_constants(self, space, w_inherit=None):
consts[const] = None
for const in self.inherited_constants(space):
consts[const] = None
return space.newarray([space.newsymbol(n) for n in consts.keys()])
return space.newarray([space.newsymbol(n) for n in consts])

if w_inherit is None or space.is_true(w_inherit):
return space.newarray([space.newsymbol(n) for n in self.included_constants(space)])
else:
return space.newarray([space.newsymbol(n) for n in self.constants_w.keys()])
return space.newarray([space.newsymbol(n) for n in self.constants_w])

@classdef.method("const_missing", name="symbol")
def method_const_missing(self, space, name):

0 comments on commit 16b94d4

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