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 11:37:01 +0100 |
commit | 8385d6d74624000d68814f4e3266d47bc8885942 (patch) | |
tree | b5936e4a38273c8b2f830c9b7ddfdde729b3d9c2 /meta/classes/tinderclient.bbclass | |
parent | 04568d1f18250d531aad5d286157d2d559083520 (diff) | |
download | openembedded-core-8385d6d74624000d68814f4e3266d47bc8885942.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.
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): import httplib # now post it for i in range(0,5): - try: - h = httplib.HTTP(server) - h.putrequest('POST', selector) - h.putheader('content-type', content_type) - h.putheader('content-length', str(len(body))) - h.endheaders() - h.send(body) - errcode, errmsg, headers = h.getreply() - #print errcode, errmsg, headers - return (errcode,errmsg, headers, h.file) - except: - print "Error sending the report!" - # try again - pass + try: + h = httplib.HTTP(server) + h.putrequest('POST', selector) + h.putheader('content-type', content_type) + h.putheader('content-length', str(len(body))) + h.endheaders() + h.send(body) + errcode, errmsg, headers = h.getreply() + #print errcode, errmsg, headers + return (errcode,errmsg, headers, h.file) + except: + print "Error sending the report!" + # try again + pass # return some garbage return (-1, "unknown", "unknown", None) |