Some changes in python-debianbts
Dear reportbug maintainers,
I just uploaded python-debianbts 2.10.0 to unstable which prepares some
changes you should be aware of. Basically, it deprecates some awkward
ways how parameters were passed to get_status, get_bugs and get_usertags:
* Deprecated support for positional arguments in `get_status`, we use a
list of bugnumbers explicitly now: `get_status(123, 234, 345)` becomes
`get_status([123, 234, 345])`
* Deprecated support for positional arguments in `get_usertags`, we use
a list of tags explicitly now:
`get_usertags('mail@example.com', 'foo', 'bar')` becomes
`get_usertags('mail@example.com', ['foo', 'bar'])`
* Deprecated support for positional arguments in `get_bugs`, we use
`kwargs` explicitly now:
`get_bugs('package', 'gtk-qt-engine', 'severity', 'normal')` becomes
`get_bugs(package='gtk-qt-engine', severity='normal')`
the old ways to call those methods will be supported for a while, but
there will be deprecation warnings.
I hope you agree that the new way of calling the above methods is a bit
more intuitive for Python users now -- I don't remember why I
implemented them like that in the first place. For now the new and the
old way will be supported but I hope to get rid of the old way before
the next Debian/stable is released.
Please let me know if you need help with migrating or ping me when you
finished migrating so i can delete the old stuff.
Cheers,
Bastian
--
Dr. Bastian Venthur https://venthur.de
Debian Developer venthur at debian org
Reply to: