mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00: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:
parent
649414c630
commit
63bc2e0fcb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue