summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 (GMT)
commitd91085598f5185b267ea51a3f615da9527af2ed2 (patch)
tree80849b9455438e9963a61d7aff3fc3b060213553 /Tools
parentfe55464f393fc002fd0911a4d8dba6694723d408 (diff)
downloadcpython-d91085598f5185b267ea51a3f615da9527af2ed2.zip
cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.gz
cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.bz2
Remove apply()
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/freeze/freeze.py2
-rw-r--r--Tools/pynche/pyColorChooser.py2
-rw-r--r--Tools/unicode/gencodec.py4
-rwxr-xr-xTools/webchecker/webchecker.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index 836f532..3e6a580 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -194,7 +194,7 @@ def main():
if o == '-l':
addn_link.append(a)
if o == '-a':
- apply(modulefinder.AddPackagePath, tuple(a.split("=", 2)))
+ modulefinder.AddPackagePath(*a.split("=", 2))
if o == '-r':
f,r = a.split("=", 2)
replace_paths.append( (f,r) )
diff --git a/Tools/pynche/pyColorChooser.py b/Tools/pynche/pyColorChooser.py
index 56f6940..d2ad61a 100644
--- a/Tools/pynche/pyColorChooser.py
+++ b/Tools/pynche/pyColorChooser.py
@@ -81,7 +81,7 @@ def askcolor(color = None, **options):
"""Ask for a color"""
global _chooser
if not _chooser:
- _chooser = apply(Chooser, (), options)
+ _chooser = Chooser(**options)
return _chooser.show(color, options)
def save():
diff --git a/Tools/unicode/gencodec.py b/Tools/unicode/gencodec.py
index 9b4ae16..494164a 100644
--- a/Tools/unicode/gencodec.py
+++ b/Tools/unicode/gencodec.py
@@ -399,6 +399,6 @@ if __name__ == '__main__':
import sys
if 1:
- apply(convertdir,tuple(sys.argv[1:]))
+ convertdir(*sys.argv[1:])
else:
- apply(rewritepythondir,tuple(sys.argv[1:]))
+ rewritepythondir(*sys.argv[1:])
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py
index d918a0c..990159c 100755
--- a/Tools/webchecker/webchecker.py
+++ b/Tools/webchecker/webchecker.py
@@ -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__),
]