tiddlyweb/tiddlyweb — comment on commit fc3c991d063294d9ba53d50c115dbc80c5cc69f2
File: tiddlyweb/manage.py line 15
By FND:

Since the decorator doesn't take arguments anymore, there's no need for an
inner closure, is there?

So this could be simplified:

def command(func, *args, **kwargs):
"""
A decorator that adds the respective method to the COMMANDS dictionary
"""
COMMANDS[func.__name__] = func
f.description = f.__doc__
return func

(though I'm not sure why a separate `description` property is needed; wouldn't
it be more pythonic if `usage` accessed `__doc__` directly?)