From patchwork Thu Oct 17 14:17:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weston Andros Adamson X-Patchwork-Id: 3061151 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E15929F2B6 for ; Thu, 17 Oct 2013 14:17:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AB12202C8 for ; Thu, 17 Oct 2013 14:17:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D9FDB202C7 for ; Thu, 17 Oct 2013 14:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755476Ab3JQORT (ORCPT ); Thu, 17 Oct 2013 10:17:19 -0400 Received: from mx11.netapp.com ([216.240.18.76]:24030 "EHLO mx11.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755326Ab3JQORS (ORCPT ); Thu, 17 Oct 2013 10:17:18 -0400 X-IronPort-AV: E=Sophos;i="4.93,514,1378882800"; d="scan'208";a="61100773" Received: from vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) by mx11-out.netapp.com with ESMTP; 17 Oct 2013 07:17:18 -0700 Received: from smtp2.corp.netapp.com (10.57.159.114) by VMWEXCEHT02-PRD.hq.netapp.com (10.106.76.240) with Microsoft SMTP Server id 14.3.123.3; Thu, 17 Oct 2013 07:17:18 -0700 Received: from vpn2ntap-388728.vpn.netapp.com (vpn2ntap-388728.vpn.netapp.com [10.55.76.84]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r9HEHHvR026623; Thu, 17 Oct 2013 07:17:17 -0700 (PDT) From: Weston Andros Adamson To: CC: , Weston Andros Adamson Subject: [PATCH] mountstats: fix python2.x support Date: Thu, 17 Oct 2013 10:17:14 -0400 Message-ID: <1382019434-12377-1-git-send-email-dros@netapp.com> X-Mailer: git-send-email 1.7.12.4 (Apple Git-37) MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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