]> granicus.if.org Git - python/commitdiff
Convert the use of apply(f, args) to the new spelling: f(*args).
authorFred Drake <fdrake@acm.org>
Mon, 23 Jul 2001 19:16:22 +0000 (19:16 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 23 Jul 2001 19:16:22 +0000 (19:16 +0000)
This is part of SF patch #443788.

Doc/lib/liburllib.tex

index b3711547b204af0f4f02dd0ff0d3fe56da339f84..e6a96d11cc953397306fc1f76e0abf50e5b94c2c 100644 (file)
@@ -175,7 +175,7 @@ accomplished with the following code:
 class AppURLopener(urllib.FancyURLopener):
     def __init__(self, *args):
         self.version = "App/1.7"
-        apply(urllib.FancyURLopener.__init__, (self,) + args)
+        urllib.FancyURLopener.__init__(self, *args)
 
 urllib._urlopener = AppURLopener()
 \end{verbatim}