From patchwork Mon Oct 21 09:04:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mkrtchyan, Tigran" X-Patchwork-Id: 3075611 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 667159F372 for ; Mon, 21 Oct 2013 09:04:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6081420364 for ; Mon, 21 Oct 2013 09:04:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 68DC82035E for ; Mon, 21 Oct 2013 09:04:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753046Ab3JUJEO (ORCPT ); Mon, 21 Oct 2013 05:04:14 -0400 Received: from smtp-o-1.desy.de ([131.169.56.154]:50697 "EHLO smtp-o-1.desy.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752863Ab3JUJEL (ORCPT ); Mon, 21 Oct 2013 05:04:11 -0400 Received: from smtp-map-1.desy.de (smtp-map-1.desy.de [131.169.56.66]) by smtp-o-1.desy.de (DESY-O-1) with ESMTP id ED76E280837 for ; Mon, 21 Oct 2013 11:04:09 +0200 (CEST) Received: from ZITSWEEP1.win.desy.de (zitsweep1.win.desy.de [131.169.97.95]) by smtp-map-1.desy.de (DESY_MAP_1) with ESMTP id CB40213E82 for ; Mon, 21 Oct 2013 11:04:09 +0200 (MEST) Received: from smtp-intra-3.desy.de (lb-40-26.desy.de) by ZITSWEEP1.win.desy.de (Clearswift SMTPRS 5.4.1) with ESMTP id for ; Mon, 21 Oct 2013 11:04:09 +0200 Received: from anahit.desy.de (anahit.desy.de [131.169.185.68]) by smtp-intra-3.desy.de (DESY-INTRA-3) with ESMTP id 7F9091147; Mon, 21 Oct 2013 11:04:09 +0200 (MEST) From: Tigran Mkrtchyan To: linux-nfs@vger.kernel.org Cc: Tigran Mkrtchyan Subject: [PATCH] mountstats: enforce new python syntax Date: Mon, 21 Oct 2013 11:04:01 +0200 Message-Id: <1382346241-20637-1-git-send-email-tigran.mkrtchyan@desy.de> X-Mailer: git-send-email 1.8.3.1 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,HK_RANDOM_FROM, 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 $ mountstats File "/usr/sbin/mountstats", line 272 (count, ((count * 100) / sends)), end=' ') ^ SyntaxError: invalid syntax Signed-off-by: Tigran Mkrtchyan --- tools/mountstats/mountstats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py index 3f5fea5..351145e 100644 --- a/tools/mountstats/mountstats.py +++ b/tools/mountstats/mountstats.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # -*- python-mode -*- +from __future__ import print_function """Parse /proc/self/mountstats and display it in human readable form """