Return-Path: X-Original-To: apmail-yetus-commits-archive@minotaur.apache.org Delivered-To: apmail-yetus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74BF018BE3 for ; Tue, 1 Dec 2015 06:11:09 +0000 (UTC) Received: (qmail 65857 invoked by uid 500); 1 Dec 2015 06:11:09 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 65839 invoked by uid 500); 1 Dec 2015 06:11:09 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 65830 invoked by uid 99); 1 Dec 2015 06:11:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 06:11:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EC209E0BB8; Tue, 1 Dec 2015 06:11:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aw@apache.org To: commits@yetus.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: yetus git commit: YETUS-189. shelldocs ignoring --skipprnorep Date: Tue, 1 Dec 2015 06:11:08 +0000 (UTC) Repository: yetus Updated Branches: refs/heads/master 35b85a9a3 -> fa80d50eb YETUS-189. shelldocs ignoring --skipprnorep Signed-off-by: Allen Wittenauer Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/fa80d50e Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/fa80d50e Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/fa80d50e Branch: refs/heads/master Commit: fa80d50eb03afef221e67f2e694dcbaf9aaac99d Parents: 35b85a9 Author: Kengo Seki Authored: Sun Nov 29 00:19:30 2015 +0900 Committer: Allen Wittenauer Committed: Mon Nov 30 22:10:54 2015 -0800 ---------------------------------------------------------------------- shelldocs/shelldocs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/fa80d50e/shelldocs/shelldocs.py ---------------------------------------------------------------------- diff --git a/shelldocs/shelldocs.py b/shelldocs/shelldocs.py index 7a1fe21..7d5506f 100755 --- a/shelldocs/shelldocs.py +++ b/shelldocs/shelldocs.py @@ -127,13 +127,13 @@ class ShellFunction: self.replaceb=self.replaceb.capitalize() def getreplace(self): - if (self.replaceb is None): - return "None" - else: + if self.replaceb == "Yes": return self.replaceb + else: + return "No" def getinter(self): - return( (self.getaudience(), self.getstability(), self.getreplace())) + return ((self.getaudience(), self.getstability(), self.getreplace())) def addreturn(self,text): if (self.returnt is None): @@ -170,7 +170,7 @@ class ShellFunction: def getusage(self): line="%s %s" % (self.name, self.getparams()) - return line + return line.rstrip() def headerbuild(self): if self.getreplace() == "Yes":