mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user