Repository: yetus Updated Branches: refs/heads/master 35b85a9a3 -> fa80d50eb
YETUS-189. shelldocs ignoring --skipprnorep Signed-off-by: Allen Wittenauer <[email protected]> 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 <[email protected]> Authored: Sun Nov 29 00:19:30 2015 +0900 Committer: Allen Wittenauer <[email protected]> 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":
