mirror of https://github.com/python/cpython.git
Don't use 'set_option()' or 'get_option()' method -- direct attribute access,
or getattr/setattr, is all that's needed.
This commit is contained in:
parent
c4537ac9b6
commit
4779cdfae8
|
@ -64,7 +64,7 @@ def run (self):
|
|||
"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()
|
||||
|
|
|
@ -79,7 +79,7 @@ def _mutate_outputs (self, has_any, build_cmd, cmd_option, output_dir):
|
|||
|
||||
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 = []
|
||||
|
|
Loading…
Reference in New Issue