mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user