Forráskód Böngészése

removed slow lineInfo() call

Darren Ranalli 22 éve
szülő
commit
3f03bf96d0
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      direct/src/level/Entity.py

+ 3 - 2
direct/src/level/Entity.py

@@ -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' %
-                                      (self, attrib, lineInfo()[2]))
+                Entity.notify.warning(
+                    '%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