mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -684,7 +684,7 @@ class Page:
|
|||
|
||||
def note(self, level, msg, *args):
|
||||
if self.checker:
|
||||
apply(self.checker.note, (level, msg) + args)
|
||||
self.checker.note(level, msg, *args)
|
||||
else:
|
||||
if self.verbose >= level:
|
||||
if args:
|
||||
|
@ -741,7 +741,7 @@ class MyURLopener(urllib.FancyURLopener):
|
|||
|
||||
def __init__(*args):
|
||||
self = args[0]
|
||||
apply(urllib.FancyURLopener.__init__, args)
|
||||
urllib.FancyURLopener.__init__(*args)
|
||||
self.addheaders = [
|
||||
('User-agent', 'Python-webchecker/%s' % __version__),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue