aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dbufstat
diff options
context:
space:
mode:
authorHajo Möller <[email protected]>2016-01-01 02:20:43 +0100
committerBrian Behlendorf <[email protected]>2016-01-07 17:09:59 -0800
commit7cf2ffa02065fe0cbec13bfb7bf4fcfaabb3d40a (patch)
tree7b7fc40cc4b3270e6f65ce2bff0d10b82c057984 /cmd/dbufstat
parent074348589b3de871a719173bef1ea4d01ffe66eb (diff)
Make arc_summary.py and dbufstat.py compatible with python3
To make arc_summary.py and dbufstat.py compatible with python3 some minor fixes were required, this was done automatically by `2to3 -w arc_summary.py` and `2to3 -w dbufstat.py`. Signed-off-by: Hajo Möller <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Reviewed-by: Richard Laager <[email protected]>
Diffstat (limited to 'cmd/dbufstat')
-rwxr-xr-xcmd/dbufstat/dbufstat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/dbufstat/dbufstat.py b/cmd/dbufstat/dbufstat.py
index 0640b0f5b..0bda1524e 100755
--- a/cmd/dbufstat/dbufstat.py
+++ b/cmd/dbufstat/dbufstat.py
@@ -386,9 +386,9 @@ def update_dict(d, k, line, labels):
def print_dict(d):
print_header()
- for pool in d.keys():
- for objset in d[pool].keys():
- for v in d[pool][objset].values():
+ for pool in list(d.keys()):
+ for objset in list(d[pool].keys()):
+ for v in list(d[pool][objset].values()):
print_values(v)