diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-08 22:32:43 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:28 +0000 |
commit | c54117458a19d05d404ec00907a8f3e9c73a416b (patch) | |
tree | 6cc5695742a1198668b022b35c8b2a456c4f3f4f /meta/classes/tinderclient.bbclass | |
parent | 80d55bbd6ea2ff93510f3b87ea97322b0b02eaa8 (diff) | |
download | poky-c54117458a19d05d404ec00907a8f3e9c73a416b.tar.gz |
classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/tinderclient.bbclass')
-rw-r--r-- | meta/classes/tinderclient.bbclass | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/tinderclient.bbclass b/meta/classes/tinderclient.bbclass index bc004efb26..28df0f9505 100644 --- a/meta/classes/tinderclient.bbclass +++ b/meta/classes/tinderclient.bbclass | |||
@@ -51,8 +51,7 @@ def tinder_format_http_post(d,status,log): | |||
51 | for the tinderbox to be happy. | 51 | for the tinderbox to be happy. |
52 | """ | 52 | """ |
53 | 53 | ||
54 | from bb import data, build | 54 | import random |
55 | import os,random | ||
56 | 55 | ||
57 | # the variables we will need to send on this form post | 56 | # the variables we will need to send on this form post |
58 | variables = { | 57 | variables = { |
@@ -125,7 +124,6 @@ def tinder_build_start(d): | |||
125 | report = report[report.find(search)+len(search):] | 124 | report = report[report.find(search)+len(search):] |
126 | report = report[0:report.find("'")] | 125 | report = report[0:report.find("'")] |
127 | 126 | ||
128 | import bb | ||
129 | bb.note("Machine ID assigned by tinderbox: %s" % report ) | 127 | bb.note("Machine ID assigned by tinderbox: %s" % report ) |
130 | 128 | ||
131 | # now we will need to save the machine number | 129 | # now we will need to save the machine number |
@@ -165,7 +163,6 @@ def tinder_print_info(d): | |||
165 | """ | 163 | """ |
166 | 164 | ||
167 | from bb import data | 165 | from bb import data |
168 | import os | ||
169 | # get the local vars | 166 | # get the local vars |
170 | 167 | ||
171 | time = tinder_time_string() | 168 | time = tinder_time_string() |
@@ -216,7 +213,6 @@ def tinder_print_env(): | |||
216 | Print the environment variables of this build | 213 | Print the environment variables of this build |
217 | """ | 214 | """ |
218 | from bb import data | 215 | from bb import data |
219 | import os | ||
220 | 216 | ||
221 | time_start = tinder_time_string() | 217 | time_start = tinder_time_string() |
222 | time_end = tinder_time_string() | 218 | time_end = tinder_time_string() |
@@ -278,7 +274,7 @@ def tinder_do_tinder_report(event): | |||
278 | """ | 274 | """ |
279 | from bb.event import getName | 275 | from bb.event import getName |
280 | from bb import data, mkdirhier, build | 276 | from bb import data, mkdirhier, build |
281 | import os, glob | 277 | import glob |
282 | 278 | ||
283 | # variables | 279 | # variables |
284 | name = getName(event) | 280 | name = getName(event) |