summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-23 19:16:22 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-23 19:16:22 (GMT)
commit63bc2e0fcbe4d76fe04dcb85780853bc4e2753a5 (patch)
tree3d2a87855fdeaec9ba74cc534e52220815df19e2
parent649414c63011446c330d744610e2dd670c69494e (diff)
downloadcpython-63bc2e0fcbe4d76fe04dcb85780853bc4e2753a5.zip
cpython-63bc2e0fcbe4d76fe04dcb85780853bc4e2753a5.tar.gz
cpython-63bc2e0fcbe4d76fe04dcb85780853bc4e2753a5.tar.bz2
Convert the use of apply(f, args) to the new spelling: f(*args).
This is part of SF patch #443788.
-rw-r--r--Doc/lib/liburllib.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex
index b371154..e6a96d1 100644
--- a/Doc/lib/liburllib.tex
+++ b/Doc/lib/liburllib.tex
@@ -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}