Convert the use of apply(f, args) to the new spelling: f(*args).

This is part of SF patch #443788.
This commit is contained in:
Fred Drake 2001-07-23 19:16:22 +00:00
parent 649414c630
commit 63bc2e0fcb
1 changed files with 1 additions and 1 deletions

View 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}