diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-20 16:52:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-21 12:15:30 +0100 |
commit | 48619958d53cbec888a0a6806c5e494291e9e227 (patch) | |
tree | 0618ff69a32566be156b0f7e5d7a06cce350e033 /meta/classes/tinderclient.bbclass | |
parent | 7c40daab587306da25c8d8f566392ee1f57bbef4 (diff) | |
download | poky-48619958d53cbec888a0a6806c5e494291e9e227.tar.gz |
meta/classes: Various python whitespace fixes
It was pointed out we have a number of weird indentations in the python functions.
This patch cleans up 3, 7 and other weird indentations for the core bbclass files.
It also fixes some wierd (odd) shell function indentation which my searches picked up.
(From OE-Core rev: 8385d6d74624000d68814f4e3266d47bc8885942)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/tinderclient.bbclass')
-rw-r--r-- | meta/classes/tinderclient.bbclass | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/classes/tinderclient.bbclass b/meta/classes/tinderclient.bbclass index e57bc48c3b..6984efd1be 100644 --- a/meta/classes/tinderclient.bbclass +++ b/meta/classes/tinderclient.bbclass | |||
@@ -2,20 +2,20 @@ def tinder_http_post(server, selector, content_type, body): | |||
2 | import httplib | 2 | import httplib |
3 | # now post it | 3 | # now post it |
4 | for i in range(0,5): | 4 | for i in range(0,5): |
5 | try: | 5 | try: |
6 | h = httplib.HTTP(server) | 6 | h = httplib.HTTP(server) |
7 | h.putrequest('POST', selector) | 7 | h.putrequest('POST', selector) |
8 | h.putheader('content-type', content_type) | 8 | h.putheader('content-type', content_type) |
9 | h.putheader('content-length', str(len(body))) | 9 | h.putheader('content-length', str(len(body))) |
10 | h.endheaders() | 10 | h.endheaders() |
11 | h.send(body) | 11 | h.send(body) |
12 | errcode, errmsg, headers = h.getreply() | 12 | errcode, errmsg, headers = h.getreply() |
13 | #print errcode, errmsg, headers | 13 | #print errcode, errmsg, headers |
14 | return (errcode,errmsg, headers, h.file) | 14 | return (errcode,errmsg, headers, h.file) |
15 | except: | 15 | except: |
16 | print "Error sending the report!" | 16 | print "Error sending the report!" |
17 | # try again | 17 | # try again |
18 | pass | 18 | pass |
19 | 19 | ||
20 | # return some garbage | 20 | # return some garbage |
21 | return (-1, "unknown", "unknown", None) | 21 | return (-1, "unknown", "unknown", None) |