Commits

Anonymous committed 592405a

removed depreciated apply function

Comments (0)

Files changed (3)

+2005-01-23  Jeff Huang <keltus@users.sourceforge.net>
+
+	* irclib.py: Removed depreciated apply functions. python-irclib is
+	now compatible with Python 1.6 and above.
+
 2005-01-20  Joel Rosdahl  <joel@rosdahl.net>
 
 	* Makefile: Removed more GNU make specific constructs.
 
 Requirements:
 
-  * Python 1.5.2 or newer.
+  * Python 1.6 or newer.
 
 Installation:
 
         t = time.time()
         while self.delayed_commands:
             if t >= self.delayed_commands[0][0]:
-                apply(self.delayed_commands[0][1], self.delayed_commands[0][2])
+                self.delayed_commands[0][1](*self.delayed_commands[0][2])
                 del self.delayed_commands[0]
             else:
                 break
 
         See documentation for IRC.add_global_handler.
         """
-        apply(self.irclibobj.add_global_handler, args)
+        self.irclibobj.add_global_handler(*args)
 
     def remove_global_handler(self, *args):
         """Remove global handler.
 
         See documentation for IRC.remove_global_handler.
         """
-        apply(self.irclibobj.remove_global_handler, args)
+        self.irclibobj.remove_global_handler(*args)
 
     def action(self, target, action):
         """Send a CTCP ACTION command."""