Rev 5143: Docstring cleanup as per review. in http://bazaar.launchpad.net/~lifeless/bzr/commands
Robert Collins
robertc at robertcollins.net
Mon Apr 12 02:26:24 BST 2010
At http://bazaar.launchpad.net/~lifeless/bzr/commands
------------------------------------------------------------
revno: 5143
revision-id: robertc at robertcollins.net-20100412012617-46o7hux630d1ekdk
parent: robertc at robertcollins.net-20100409035814-eqayfeknoncyoctr
committer: Robert Collins <robertc at robertcollins.net>
branch nick: commands
timestamp: Mon 2010-04-12 11:26:17 +1000
message:
Docstring cleanup as per review.
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2010-04-09 03:58:14 +0000
+++ b/bzrlib/commands.py 2010-04-12 01:26:17 +0000
@@ -687,11 +687,12 @@
def _setup_run(self):
"""Wrap the defined run method on self with a cleanup.
- This is called by __init__ to make the Command be able to be run
- by just calling run(), as it could be before cleanups were added.
+ This is called by __init__ to make it possible to call cmd.run() and
+ still have cleanups execute.
If a different form of cleanups are in use by your Command subclass,
- you can override this method.
+ you can override this method to create the appropriate setup your class
+ needs.
"""
class_run = self.run
def run(*args, **kwargs):
More information about the bazaar-commits
mailing list