summaryrefslogtreecommitdiff
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-07 15:32:13 +0000
committerGreg Ward <gward@python.net>2000-05-07 15:32:13 +0000
commit6780574852f97cdb3267a494f7d478ea0919d6e0 (patch)
tree9a13eb0838c700f58752b05c02992eb86fe7cf74 /Lib/distutils
parent431f0a73cdcc7d32c56ceab94e66001868be55be (diff)
downloadcpython-6780574852f97cdb3267a494f7d478ea0919d6e0.tar.gz
Don't use 'set_option()' or 'get_option()' method -- direct attribute access,
or getattr/setattr, is all that's needed.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist.py2
-rw-r--r--Lib/distutils/command/install_lib.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py
index cde8dd63e8..01b4e162d3 100644
--- a/Lib/distutils/command/bdist.py
+++ b/Lib/distutils/command/bdist.py
@@ -64,7 +64,7 @@ class bdist (Command):
"invalid archive format '%s'" % self.format
sub_cmd = self.find_peer (cmd_name)
- sub_cmd.set_option ('format', self.format)
+ sub_cmd.format = self.format
self.run_peer (cmd_name)
# run()
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index 5740c5eed2..852e3f63a2 100644
--- a/Lib/distutils/command/install_lib.py
+++ b/Lib/distutils/command/install_lib.py
@@ -79,7 +79,7 @@ class install_lib (Command):
build_cmd = self.find_peer (build_cmd)
build_files = build_cmd.get_outputs()
- build_dir = build_cmd.get_option (cmd_option)
+ build_dir = getattr (build_cmd, cmd_option)
prefix_len = len (build_dir) + len (os.sep)
outputs = []