diff options
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r-- | bitbake/lib/bb/event.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index f0690b4f2b..c0a8db15aa 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -104,13 +104,13 @@ def worker_fire(event, d): | |||
104 | data = "<event>" + pickle.dumps(event) + "</event>" | 104 | data = "<event>" + pickle.dumps(event) + "</event>" |
105 | try: | 105 | try: |
106 | if os.write(worker_pipe, data) != len (data): | 106 | if os.write(worker_pipe, data) != len (data): |
107 | print "Error sending event to server (short write)" | 107 | print("Error sending event to server (short write)") |
108 | except OSError: | 108 | except OSError: |
109 | sys.exit(1) | 109 | sys.exit(1) |
110 | 110 | ||
111 | def fire_from_worker(event, d): | 111 | def fire_from_worker(event, d): |
112 | if not event.startswith("<event>") or not event.endswith("</event>"): | 112 | if not event.startswith("<event>") or not event.endswith("</event>"): |
113 | print "Error, not an event" | 113 | print("Error, not an event") |
114 | return | 114 | return |
115 | event = pickle.loads(event[7:-8]) | 115 | event = pickle.loads(event[7:-8]) |
116 | fire_ui_handlers(event, d) | 116 | fire_ui_handlers(event, d) |