summaryrefslogtreecommitdiff
path: root/src/distutils2/command/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/distutils2/command/cmd.py')
-rw-r--r--src/distutils2/command/cmd.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/distutils2/command/cmd.py b/src/distutils2/command/cmd.py
index 161fc46..502bbfd 100644
--- a/src/distutils2/command/cmd.py
+++ b/src/distutils2/command/cmd.py
@@ -19,7 +19,7 @@ try:
except ImportError:
from distutils2._backport.shutil import make_archive
-class Command:
+class Command(object):
"""Abstract base class for defining command classes, the "worker bees"
of the Distutils. A useful analogy for command classes is to think of
them as subroutines with local variables called "options". The options
@@ -57,8 +57,7 @@ class Command:
def __init__(self, dist):
"""Create and initialize a new Command object. Most importantly,
invokes the 'initialize_options()' method, which is the real
- initializer and depends on the actual command being
- instantiated.
+ initializer and depends on the actual command being instantiated.
"""
# late import because of mutual dependence between these classes
from distutils2.dist import Distribution
@@ -333,10 +332,8 @@ class Command:
cmd_obj.ensure_finalized()
return cmd_obj
- # XXX rename to 'get_reinitialized_command()'? (should do the
- # same in dist.py, if so)
- def reinitialize_command(self, command, reinit_subcommands=0):
- return self.distribution.reinitialize_command(
+ def get_reinitialized_command(self, command, reinit_subcommands=0):
+ return self.distribution.get_reinitialized_command(
command, reinit_subcommands)
def run_command(self, command):