Browse Source

Eliminated deprecated call to 'apply' in favor of direct function call, in order to gain more detailed Python Profiler data

wesbell 18 years ago
parent
commit
7d4e840bad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/Messenger.py

+ 1 - 1
direct/src/showbase/Messenger.py

@@ -237,7 +237,7 @@ class Messenger:
                 # method itself might call accept() or acceptOnce()
                 # again.
                 assert callable(method)
-                apply(method, (extraArgs + sentArgs))
+                method (*(extraArgs + sentArgs))
 
     def clear(self):
         """