From fa5480e8bccec39278e9c5f81c09d1e702fd0fd7 Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski <koslowski@kit.edu> Date: Sun, 24 Nov 2013 20:23:39 +0100 Subject: modtool: no more exit() in modtool package Conflicts: gr-utils/python/modtool/modtool_newmod.py --- gr-utils/python/modtool/modtool_help.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gr-utils/python/modtool/modtool_help.py') diff --git a/gr-utils/python/modtool/modtool_help.py b/gr-utils/python/modtool/modtool_help.py index 76d9fd28bd..b894e272e8 100644 --- a/gr-utils/python/modtool/modtool_help.py +++ b/gr-utils/python/modtool/modtool_help.py @@ -26,8 +26,8 @@ from templates import Templates def print_class_descriptions(): - ''' Go through all ModTool* classes and print their name, - alias and description. ''' + """ Go through all ModTool* classes and print their name, + alias and description. """ desclist = [] for gvar in globals().values(): try: @@ -40,14 +40,16 @@ def print_class_descriptions(): for description in desclist: print '%-8s %-12s %s' % description + class ModToolHelp(ModTool): - ''' Show some help. ''' + """ Show some help. """ name = 'help' aliases = ('h', '?') + def __init__(self): ModTool.__init__(self) - def setup(self): + def setup(self, options, args): pass def run(self): -- cgit v1.2.3