piranha/opster — pull request #52 by oscarbenjamin (2012-09-13 21:53:38+00:00)
Title: Fix call_cmd_regular when arginfo.defaults is None

Hi again. Sorry I've been too busy to do anything on opster lately. I did find a bug just now, though, while working on something else.

This patch fixes and adds tests for a bug when calling an opster-wrapped function directly (rather than using the ```.command``` attribute for a function that doesn't have any arguments with default values..
For whatever reason ```inspect.getargspec``` can return an ```ArgSpec``` with ```defaults``` set to ```None``` rather than an empty tuple. This patch just adds a quick check for that case.