summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 +0000
commitc6b9bf95ccf50b47103d7510021f6cf67e6ed356 (patch)
tree106f942ee9ead9909bc08b7ac1278028fa53bb18 /Tools
parentb62568579afc292683a346a8598496219b56777e (diff)
downloadcpython-c6b9bf95ccf50b47103d7510021f6cf67e6ed356.tar.gz
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 836f53261f..3e6a580231 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 56f694062b..d2ad61ac54 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 9b4ae1626a..494164a690 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 d918a0c724..990159c4cf 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__),
]