~cjwatson/lazr.restful/py3-declarations

Viewing all changes in revision 236.

  • Committer: Colin Watson
  • Date: 2020-02-04 21:53:16 UTC
  • Revision ID: cjwatson@canonical.com-20200204215316-1th6mgt7o43k7oby
Deprecate class advice APIs and provide replacements.

lazr.restful.declarations.export_as_webservice_entry and
lazr.restful.declarations.export_as_webservice_collection can't work on
Python 3, because the whole "class advice" strategy relies on metaclass
hacking that is no longer possible.  Deprecate these and provide equivalent
class decorators (@exported_as_webservice_entry and
@exported_as_webservice_collection) instead.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: