Commit 63bc2e0f authored by Fred Drake's avatar Fred Drake

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

This is part of SF patch #443788.
parent 649414c6
...@@ -175,7 +175,7 @@ accomplished with the following code: ...@@ -175,7 +175,7 @@ accomplished with the following code:
class AppURLopener(urllib.FancyURLopener): class AppURLopener(urllib.FancyURLopener):
def __init__(self, *args): def __init__(self, *args):
self.version = "App/1.7" self.version = "App/1.7"
apply(urllib.FancyURLopener.__init__, (self,) + args) urllib.FancyURLopener.__init__(self, *args)
urllib._urlopener = AppURLopener() urllib._urlopener = AppURLopener()
\end{verbatim} \end{verbatim}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment