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/buildstats.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/buildstats.bbclass')
-rw-r--r-- | meta/classes/buildstats.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index dc9afb101b..6fd13a8602 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -65,7 +65,7 @@ def set_device(e): | |||
65 | try: | 65 | try: |
66 | for line in open("/proc/diskstats", "r"): | 66 | for line in open("/proc/diskstats", "r"): |
67 | if majordev == int(line.split()[0]) and minordev == int(line.split()[1]): | 67 | if majordev == int(line.split()[0]) and minordev == int(line.split()[1]): |
68 | rdev=line.split()[2] | 68 | rdev=line.split()[2] |
69 | except: | 69 | except: |
70 | pass | 70 | pass |
71 | file = open(e.data.getVar('DEVFILE', True), "w") | 71 | file = open(e.data.getVar('DEVFILE', True), "w") |
@@ -100,10 +100,10 @@ def get_diskdata(var, dev, data): | |||
100 | olddiskdata = data.getVar(var, False) | 100 | olddiskdata = data.getVar(var, False) |
101 | diskdata = {} | 101 | diskdata = {} |
102 | if olddiskdata is None: | 102 | if olddiskdata is None: |
103 | return | 103 | return |
104 | newdiskdata = get_diskstats(dev) | 104 | newdiskdata = get_diskstats(dev) |
105 | for key in olddiskdata.iterkeys(): | 105 | for key in olddiskdata.iterkeys(): |
106 | diskdata["Start"+key] = str(int(olddiskdata[key])) | 106 | diskdata["Start"+key] = str(int(olddiskdata[key])) |
107 | diskdata["End"+key] = str(int(newdiskdata[key])) | 107 | diskdata["End"+key] = str(int(newdiskdata[key])) |
108 | return diskdata | 108 | return diskdata |
109 | 109 | ||