All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mountstats: fix python2.x support
@ 2013-10-17 14:17 Weston Andros Adamson
  2013-10-21 14:08 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Weston Andros Adamson @ 2013-10-17 14:17 UTC (permalink / raw)
  To: SteveD; +Cc: linux-nfs, Weston Andros Adamson

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)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mountstats: fix python2.x support
  2013-10-17 14:17 [PATCH] mountstats: fix python2.x support Weston Andros Adamson
@ 2013-10-21 14:08 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2013-10-21 14:08 UTC (permalink / raw)
  To: Weston Andros Adamson; +Cc: linux-nfs



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>
>  
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-21 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 14:17 [PATCH] mountstats: fix python2.x support Weston Andros Adamson
2013-10-21 14:08 ` Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.