diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-24 16:56:12 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:32 +0100 |
commit | 7acc132cac873e60005516272473a55a8160b9c4 (patch) | |
tree | 2e4122862ffd856803160b6089fcb979d3efd630 /bitbake/lib/bb/command.py | |
parent | bbf83fd988ca3cf9dae7d2b542a11a7c942b1702 (diff) | |
download | poky-7acc132cac873e60005516272473a55a8160b9c4.tar.gz |
Formatting cleanups
(Bitbake rev: 2caf134b43a44dad30af4fbe33033b3c58deee57)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 06bd203c90..a590e61abe 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -20,7 +20,7 @@ Provide an interface to interact with the bitbake server through 'commands' | |||
20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
21 | 21 | ||
22 | """ | 22 | """ |
23 | The bitbake server takes 'commands' from its UI/commandline. | 23 | The bitbake server takes 'commands' from its UI/commandline. |
24 | Commands are either synchronous or asynchronous. | 24 | Commands are either synchronous or asynchronous. |
25 | Async commands return data to the client in the form of events. | 25 | Async commands return data to the client in the form of events. |
26 | Sync commands must only return data through the function return value | 26 | Sync commands must only return data through the function return value |
@@ -62,7 +62,7 @@ class Command: | |||
62 | try: | 62 | try: |
63 | command = commandline.pop(0) | 63 | command = commandline.pop(0) |
64 | if command in CommandsSync.__dict__: | 64 | if command in CommandsSync.__dict__: |
65 | # Can run synchronous commands straight away | 65 | # Can run synchronous commands straight away |
66 | return getattr(CommandsSync, command)(self.cmds_sync, self, commandline) | 66 | return getattr(CommandsSync, command)(self.cmds_sync, self, commandline) |
67 | if self.currentAsyncCommand is not None: | 67 | if self.currentAsyncCommand is not None: |
68 | return "Busy (%s in progress)" % self.currentAsyncCommand[0] | 68 | return "Busy (%s in progress)" % self.currentAsyncCommand[0] |
@@ -268,6 +268,3 @@ class CookerCommandSetExitCode(bb.event.Event): | |||
268 | def __init__(self, exitcode): | 268 | def __init__(self, exitcode): |
269 | bb.event.Event.__init__(self) | 269 | bb.event.Event.__init__(self) |
270 | self.exitcode = int(exitcode) | 270 | self.exitcode = int(exitcode) |
271 | |||
272 | |||
273 | |||