mirror of https://github.com/python/cpython
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:
parent
649414c630
commit
63bc2e0fcb
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue