From: Steve Dickson <SteveD@redhat.com>
To: Weston Andros Adamson <dros@netapp.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] mountstats: fix python2.x support
Date: Mon, 21 Oct 2013 10:08:09 -0400 [thread overview]
Message-ID: <52653549.1040501@RedHat.com> (raw)
In-Reply-To: <1382019434-12377-1-git-send-email-dros@netapp.com>
On 17/10/13 10:17, Weston Andros Adamson wrote:
> 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>
Committed...
steved.
> ---
> 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>
>
>
prev parent reply other threads:[~2013-10-21 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-17 14:17 [PATCH] mountstats: fix python2.x support Weston Andros Adamson
2013-10-21 14:08 ` Steve Dickson [this message]
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=52653549.1040501@RedHat.com \
--to=steved@redhat.com \
--cc=dros@netapp.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