diff options
| author | Chris Larson <chris_larson@mentor.com> | 2010-04-09 19:46:14 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
| commit | ad543e2e41b7e86d83cf0518b096ef82627bf891 (patch) | |
| tree | f8f3c5d4f759f3169a937db1da6858a11aa938fa /bitbake/lib/bb/ui/depexp.py | |
| parent | 978b5c946683885a64ee9e7c2064ff696f05cddb (diff) | |
| download | poky-ad543e2e41b7e86d83cf0518b096ef82627bf891.tar.gz | |
Apply the 2to3 print function transform
(Bitbake rev: ff2e28d0d9723ccd0e9dd635447b6d889cc9f597)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/ui/depexp.py')
| -rw-r--r-- | bitbake/lib/bb/ui/depexp.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index c596cad5cf..e386e34958 100644 --- a/bitbake/lib/bb/ui/depexp.py +++ b/bitbake/lib/bb/ui/depexp.py | |||
| @@ -201,14 +201,14 @@ def init(server, eventHandler): | |||
| 201 | try: | 201 | try: |
| 202 | cmdline = server.runCommand(["getCmdLineAction"]) | 202 | cmdline = server.runCommand(["getCmdLineAction"]) |
| 203 | if not cmdline or cmdline[0] != "generateDotGraph": | 203 | if not cmdline or cmdline[0] != "generateDotGraph": |
| 204 | print "This UI is only compatible with the -g option" | 204 | print("This UI is only compatible with the -g option") |
| 205 | return | 205 | return |
| 206 | ret = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]]) | 206 | ret = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]]) |
| 207 | if ret != True: | 207 | if ret != True: |
| 208 | print "Couldn't run command! %s" % ret | 208 | print("Couldn't run command! %s" % ret) |
| 209 | return | 209 | return |
| 210 | except xmlrpclib.Fault, x: | 210 | except xmlrpclib.Fault, x: |
| 211 | print "XMLRPC Fault getting commandline:\n %s" % x | 211 | print("XMLRPC Fault getting commandline:\n %s" % x) |
| 212 | return | 212 | return |
| 213 | 213 | ||
| 214 | shutdown = 0 | 214 | shutdown = 0 |
| @@ -233,8 +233,8 @@ def init(server, eventHandler): | |||
| 233 | x = event.sofar | 233 | x = event.sofar |
| 234 | y = event.total | 234 | y = event.total |
| 235 | if x == y: | 235 | if x == y: |
| 236 | print("\nParsing finished. %d cached, %d parsed, %d skipped, %d masked, %d errors." | 236 | print(("\nParsing finished. %d cached, %d parsed, %d skipped, %d masked, %d errors." |
| 237 | % ( event.cached, event.parsed, event.skipped, event.masked, event.errors)) | 237 | % ( event.cached, event.parsed, event.skipped, event.masked, event.errors))) |
| 238 | pbar.hide() | 238 | pbar.hide() |
| 239 | gtk.gdk.threads_enter() | 239 | gtk.gdk.threads_enter() |
| 240 | pbar.progress.set_fraction(float(x)/float(y)) | 240 | pbar.progress.set_fraction(float(x)/float(y)) |
| @@ -250,7 +250,7 @@ def init(server, eventHandler): | |||
| 250 | if isinstance(event, bb.command.CookerCommandCompleted): | 250 | if isinstance(event, bb.command.CookerCommandCompleted): |
| 251 | continue | 251 | continue |
| 252 | if isinstance(event, bb.command.CookerCommandFailed): | 252 | if isinstance(event, bb.command.CookerCommandFailed): |
| 253 | print "Command execution failed: %s" % event.error | 253 | print("Command execution failed: %s" % event.error) |
| 254 | break | 254 | break |
| 255 | if isinstance(event, bb.cooker.CookerExit): | 255 | if isinstance(event, bb.cooker.CookerExit): |
| 256 | break | 256 | break |
| @@ -259,13 +259,13 @@ def init(server, eventHandler): | |||
| 259 | 259 | ||
| 260 | except KeyboardInterrupt: | 260 | except KeyboardInterrupt: |
| 261 | if shutdown == 2: | 261 | if shutdown == 2: |
| 262 | print "\nThird Keyboard Interrupt, exit.\n" | 262 | print("\nThird Keyboard Interrupt, exit.\n") |
| 263 | break | 263 | break |
| 264 | if shutdown == 1: | 264 | if shutdown == 1: |
| 265 | print "\nSecond Keyboard Interrupt, stopping...\n" | 265 | print("\nSecond Keyboard Interrupt, stopping...\n") |
| 266 | server.runCommand(["stateStop"]) | 266 | server.runCommand(["stateStop"]) |
| 267 | if shutdown == 0: | 267 | if shutdown == 0: |
| 268 | print "\nKeyboard Interrupt, closing down...\n" | 268 | print("\nKeyboard Interrupt, closing down...\n") |
| 269 | server.runCommand(["stateShutdown"]) | 269 | server.runCommand(["stateShutdown"]) |
| 270 | shutdown = shutdown + 1 | 270 | shutdown = shutdown + 1 |
| 271 | pass | 271 | pass |
