summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2013-10-21 10:06:41 -0400
committerSteve Dickson <steved@redhat.com>2013-10-21 10:07:35 -0400
commit610e8a05ecadf2d46cf2ed4c64ee5ce332117f6a (patch)
treec5409b6a23587a5098cda8673c5bbb9c7e48c12e
parent6085de30b363e916ea6968f54c294aeecac07efa (diff)
downloadnfs-utils-610e8a05ecadf2d46cf2ed4c64ee5ce332117f6a.tar.gz
nfs-utils-610e8a05ecadf2d46cf2ed4c64ee5ce332117f6a.tar.xz
nfs-utils-610e8a05ecadf2d46cf2ed4c64ee5ce332117f6a.zip
mountstats: fix python2.x support
Commit b703eabe converted mountstats to using python3's print() function, but this doesn't work in python2.x without importing the print function from __future__. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--tools/mountstats/mountstats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index 3f5fea5..e46105d 100644
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -3,6 +3,8 @@
"""Parse /proc/self/mountstats and display it in human readable form
"""
+from __future__ import print_function
+
__copyright__ = """
Copyright (C) 2005, Chuck Lever <cel@netapp.com>