[openstack-dev] [nova] Questions on pep8 F811 hacking check for microversion

Chen CH Ji jichenjc at cn.ibm.com
Tue Jan 6 11:25:33 UTC 2015

Based on nova-specs api-microversions.rst
we support following function definition format, but it violate the hacking
rule pep8 F811 because duplicate function definition
we should use #noqa for them , but considering microversion may live for
long time ,
keep adding #noqa may be a little bit ugly, can anyone suggest a good
solution for it ? thanks

>   @api_version(min_version='2.1')
>   def _version_specific_func(self, req, arg1):
>      pass
>   @api_version(min_version='2.5')
>   def _version_specific_func(self, req, arg1):
>      pass

Best Regards!

Kevin (Chen) Ji 纪 晨

Engineer, zVM Development, CSTL
Notes: Chen CH Ji/China/IBM at IBMCN   Internet: jichenjc at cn.ibm.com
Phone: +86-10-82454158
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
Beijing 100193, PRC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150106/feb65b6e/attachment.html>

More information about the OpenStack-dev mailing list