4 Commits

Author SHA1 Message Date
Brant Knudson
b913f827bb Fix to preserve argspec
The positional wrapper is fixed so that the argspec of the wrapped
function is preserved.
2016-04-15 11:20:47 -05:00
Jamie Lennox
fc43875e6d Emit a DeprecationWarning rather than log a message
When used as a library we really don't know how logging will be
configured in the calling application so we shouldn't be logging our own
messages. Instead the standard way to signal deprecation is via a
DeprecationWarning.

Change the WARN enforcement to emit a warning instead of logging.

Resolves: #1
2016-01-14 12:32:28 +11:00
Jamie Lennox
c3e142923d Use from positional import positional syntax
This is always how i expected the class to be used and is why the WARN
and EXCEPT variables are on both the module and the class. It's much
neater and in the style of from pprint import pprint.

The tests should reflect the way we expect people to consume it.
2016-01-14 10:22:06 +11:00
Morgan Fainberg
640322793f Add tests and support files.
Add in the testing and support files for travis, LICENSEing. This
commit also ensures that all the files are no longer referencing
python-keystoneclient.
2016-01-12 21:36:03 -08:00