Kaydet (Commit) 4779cdfa authored tarafından Greg Ward's avatar Greg Ward

Don't use 'set_option()' or 'get_option()' method -- direct attribute access,

or getattr/setattr, is all that's needed.
üst c4537ac9
......@@ -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()
......
......@@ -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 = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment