From: Weston Andros Adamson <dros@netapp.com>
To: <SteveD@redhat.com>
Cc: <linux-nfs@vger.kernel.org>, Weston Andros Adamson <dros@netapp.com>
Subject: [PATCH] mountstats: fix python2.x support
Date: Thu, 17 Oct 2013 10:17:14 -0400 [thread overview]
Message-ID: <1382019434-12377-1-git-send-email-dros@netapp.com> (raw)
Commit b703eabe4c4bc5c2d5fd9a07b6b995d67ea7e77a 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>
---
tools/mountstats/mountstats.py | 2 ++
1 file changed, 2 insertions(+)
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>
--
1.7.12.4 (Apple Git-37)
next reply other threads:[~2013-10-17 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-17 14:17 Weston Andros Adamson [this message]
2013-10-21 14:08 ` [PATCH] mountstats: fix python2.x support Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382019434-12377-1-git-send-email-dros@netapp.com \
--to=dros@netapp.com \
--cc=SteveD@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox