removed slow lineInfo() call

This commit is contained in:
Darren Ranalli 2003-12-05 02:18:34 +00:00
parent 8fbd7392b1
commit 3f03bf96d0

View File

@ -80,8 +80,9 @@ class Entity(DirectObject):
def setAttribInit(self, attrib, value): def setAttribInit(self, attrib, value):
if __debug__: if __debug__:
if hasattr(self, attrib): if hasattr(self, attrib):
Entity.notify.warning('%s already has member %s in %s' % Entity.notify.warning(
(self, attrib, lineInfo()[2])) '%s already has member %s in setAttribInit' %
(self, attrib))
# TODO: we should probably put this crep in a dictionary # TODO: we should probably put this crep in a dictionary
# rather than dump it into the entity's namespace # rather than dump it into the entity's namespace
self.__dict__[attrib] = value self.__dict__[attrib] = value