<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 25, 2014 at 8:47 PM, Clark Boylan <span dir="ltr"><<a href="mailto:cboylan@sapwetik.org" target="_blank">cboylan@sapwetik.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On Mon, Aug 25, 2014, at 06:45 PM, Murali Balcha wrote:<br>
> Pylint on my patch is failing with the following error:<br>
><br>
> Module 'hashlib' has no 'sha256'<br>
><br>
> Cinder pylint already has following exceptions,<br>
><br>
><br>
> pylint_exceptions:["Instance of 'sha1' has no 'update' member", ""]<br>
><br>
> pylint_exceptions:["Module 'hashlib' has no 'sha224' member", ""]<br>
><br>
><br>
> So I think "hashlib has no 'sha256'" should be added to the exception<br>
> list as well. How can I update the exception list?<br>
><br>
><br>
> Thanks,<br>
><br>
> Murali Balcha<br>
</div></div>> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
I think this may be related to your install of python. Mine does not<br>
have this problem.<br>
<br>
$ python<br>
Python 2.7.6 (default, Mar 22 2014, 22:59:56)<br>
[GCC 4.8.2] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import hashlib<br>
>>> hashlib.sha256<br>
<built-in function openssl_sha256><br>
>>> hashlib.sha224<br>
<built-in function openssl_sha224><br>
>>> s = hashlib.sha1()<br>
>>> s.update('somestring')<br>
>>><br>
<br>
You should not need to treat these as acceptable failures.<br>
<br>
Clark<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><div class="gmail_default" style="font-family:'courier new',monospace"></div><div class="gmail_default" style="font-family:'courier new',monospace">The error pointed out by Murali is actually showing up in the gate [1]. I think adding the pylint exception is fine in this case. </div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">[1]: <a href="http://logs.openstack.org/68/110068/8/check/gate-cinder-pylint/8c6813d/console.html">http://logs.openstack.org/68/110068/8/check/gate-cinder-pylint/8c6813d/console.html</a></div>
<br></div></div>