Skip to content
Permalink
Browse files

random style nit

  • Loading branch information
Alex Gaynor
Alex Gaynor committed May 4, 2013
1 parent c864124 commit 6bab1eabab03551c987d237715c9ed3d0492b4b3
Showing with 2 additions and 4 deletions.
  1. +2 −4 topaz/objects/classobject.py
@@ -98,13 +98,11 @@ def method_undefined(self, space, w_name):
def singleton_method_allocate(self, space, w_superclass=None):
if w_superclass is not None:
if not isinstance(w_superclass, W_ClassObject):
raise space.error(
space.w_TypeError,
raise space.error(space.w_TypeError,
"superclass must be a Class (%s given)" % space.obj_to_s(space.getclass(w_superclass))
)
if w_superclass.is_singleton:
raise space.error(
space.w_TypeError,
raise space.error(space.w_TypeError,
"can't make subclass of singleton class"
)
else:

0 comments on commit 6bab1ea

Please sign in to comment.