Minor fixes to microversion devref

This patch fixes 3 minor issues in the microversion devref:

- ``# no qa`` is replaced with ``# noqa``
- Change example usage of api_version requiring noqa with preferred
  method that doesn't.
- Replace api_version decorator in example with the full and correct
  decorator wsgi.Controller.api_version.

TrivialFix

Change-Id: I31af4c566683cf5b38b74c9f9164fdc6aa0ee6c7
This commit is contained in:
Gorka Eguileor
2017-06-02 10:38:25 +02:00
parent 47030e9524
commit e8c7946a23

View File

@@ -214,11 +214,11 @@ A method with only small changes between versions
A method may have only small changes between microversions, in which
case you can decorate a private method::
@api_version("3.1", "3.4")
@wsgi.Controller.api_version("3.1", "3.4")
def _version_specific_func(self, req, arg1):
pass
@api_version(min_ver="3.5") # noqa
@_version_specific_func.api_version(min_ver="3.5")
def _version_specific_func(self, req, arg1):
pass