summaryrefslogtreecommitdiff
path: root/tools/mountstats
diff options
context:
space:
mode:
authorSlavek Kabrda <bkabrda@redhat.com>2014-07-25 10:53:28 -0400
committerSteve Dickson <steved@redhat.com>2014-07-25 10:58:53 -0400
commit1df82a36df74a59f55eea99d08612564fa22cbef (patch)
treedd5425b454d9e748280b7d9ce604367f3dea1697 /tools/mountstats
parentb7b9e4e69587652b40d543094b133fb8b4881dc1 (diff)
downloadnfs-utils-1df82a36df74a59f55eea99d08612564fa22cbef.tar.gz
Fix Python 3 compatibility of mountstats and nfs-iostatnfs-utils-1-3-1-rc3
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tools/mountstats')
-rw-r--r--tools/mountstats/mountstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index e46105d..1fb3e2f 100644
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -371,7 +371,7 @@ def parse_stats_file(filename):
ms_dict = dict()
key = ''
- f = file(filename)
+ f = open(filename)
for line in f.readlines():
words = line.split()
if len(words) == 0: