diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-16 18:39:46 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-16 18:39:46 +0100 |
commit | 7e9e86eb67ba8b945accd99be5b727a6bef78f3b (patch) | |
tree | e91c09936c52f9cb96f8a38fa204a6bcc0c76959 /alot/commands/__init__.py | |
parent | 2111232714df02e6b175577c9abb4c9b49061c62 (diff) |
cleanup
Diffstat (limited to 'alot/commands/__init__.py')
-rw-r--r-- | alot/commands/__init__.py | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/alot/commands/__init__.py b/alot/commands/__init__.py index d0a26021..651b0130 100644 --- a/alot/commands/__init__.py +++ b/alot/commands/__init__.py @@ -109,18 +109,9 @@ def commandfactory(cmdline, mode='global'): logging.debug(msg) raise CommandParseError(msg) - #logging.debug(parser) parms = vars(parser.parse_args(args)) - logging.debug('PARMS: %s' % parms) - logging.debug(parms) - parms.update(forcedparms) - # still needed? - #for (key, value) in kwargs.items(): - # if callable(value): - # parms[key] = value() - # else: - # parms[key] = value + logging.debug('PARMS: %s' % parms) parms['prehook'] = alot.settings.hooks.get('pre_' + cmdname) parms['posthook'] = alot.settings.hooks.get('post_' + cmdname) @@ -130,12 +121,5 @@ def commandfactory(cmdline, mode='global'): #def interpret_commandline(cmdline, mode): -# -# elif cmd == 'shellescape': -# return commandfactory(cmd, mode=mode, commandstring=params) -# elif cmd == 'edit': -# filepath = os.path.expanduser(params) -# if os.path.isfile(filepath): -# return commandfactory(cmd, mode=mode, path=filepath) __all__ = list(filename[:-3] for filename in glob.glob1(os.path.dirname(__file__), '*.py')) |