Skip to content
Permalink
Browse files

Whoops, fix this logic.

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 10, 2013
1 parent 36a295d commit 93723f55628b91a006e8571d004b8a9bc73071b9
Showing with 2 additions and 2 deletions.
  1. +2 −2 topaz/interpreter.py
@@ -369,7 +369,7 @@ def BUILD_CLASS(self, space, bytecode, frame, pc):
w_scope = frame.pop()

name = space.symbol_w(w_name)
w_cls = w_scope.find_local_const(space, name)
w_cls = w_scope.find_included_const(space, name)
if w_cls is None:
if superclass is space.w_nil:
superclass = space.w_object
@@ -392,7 +392,7 @@ def BUILD_MODULE(self, space, bytecode, frame, pc):
w_scope = frame.pop()

name = space.symbol_w(w_name)
w_mod = w_scope.find_local_const(space, name)
w_mod = w_scope.find_included_const(space, name)

if w_mod is None:
w_mod = space.newmodule(name, w_scope=w_scope)

0 comments on commit 93723f5

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