[Pkg-bazaar-commits] ./bzr/unstable r984: - tidy up docstring

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:40 UTC 2009


------------------------------------------------------------
revno: 984
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-07-27 11:53:50 -0300
message:
  - tidy up docstring
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-07-25 22:52:42 +0000
+++ b/bzrlib/commands.py	2005-07-27 14:53:50 +0000
@@ -223,16 +223,18 @@
 class ExternalCommand(Command):
     """Class to wrap external commands.
 
-    We cheat a little here, when get_cmd_class() calls us we actually give it back
-    an object we construct that has the appropriate path, help, options etc for the
-    specified command.
-
-    When run_bzr() tries to instantiate that 'class' it gets caught by the __call__
-    method, which we override to call the Command.__init__ method. That then calls
-    our run method which is pretty straight forward.
-
-    The only wrinkle is that we have to map bzr's dictionary of options and arguments
-    back into command line options and arguments for the script.
+    We cheat a little here, when get_cmd_class() calls us we actually
+    give it back an object we construct that has the appropriate path,
+    help, options etc for the specified command.
+
+    When run_bzr() tries to instantiate that 'class' it gets caught by
+    the __call__ method, which we override to call the Command.__init__
+    method. That then calls our run method which is pretty straight
+    forward.
+
+    The only wrinkle is that we have to map bzr's dictionary of options
+    and arguments back into command line options and arguments for the
+    script.
     """
 
     def find_command(cls, cmd):



More information about the Pkg-bazaar-commits mailing list