[Pki-devel] [PATCH] 66, 67 Fixing warnings reported by pylint in Dogtag 10 python code.

Abhishek Koneru akoneru at redhat.com
Tue Jul 9 16:27:11 UTC 2013


Please review the patches which address the following warnings reported
by pylint.

+-----------+------------+
|message id |occurrences |
+===========+============+
|W0403      |84          |Relative import error (Need to investigate.)
+-----------+------------+
|W1401      |34          |Anomalous backslash in string: ‘%s’. (All
occurences in regex patterns)
+-----------+------------+
|W0613      |12          |Unused argument %r (This is mainly due to the
keyboard interrupt handler - in every script )
+-----------+------------+
|W0221      |6           |Arguments number differs from %s method (These
cases are basic function overriding, did not find a specific reason as
to why this is causing a warning)
+-----------+------------+
|W0621      |4           |Redefining name %r from outer scope (All cases
related to interrupt handler code in pki* scripts)
+-----------+------------+
|W0212      |4           |Access to a protected member %s of a client
class (Found in pkiparser.py in compose_slots_dict function. This is the
only way for retrieving all the key-value pairs in a section )
+-----------+------------+ (without any entries from the default
sections in the dict.)
|W0612      |1           |Unused variable %r  (A starightforward fix)
+-----------+------------+


Issues remaining to be fixed - 

Messages
--------

+-----------+------------+
|message id |occurrences |
+===========+============+
|W0201      |25          |Attribute %r defined outside __init__ 
+-----------+------------+
|E0202      |1           |An attribute affected in %s line %s hide this
method. E0202: 15,4:CustomTypeEncoder.default: An attribute affected in
json.encoder line 157 hide this method (in encoder.py)
+-----------+------------+

--Abhishek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-akoneru-0067-Fixes-for-issues-reported-by-pylint.patch
Type: text/x-patch
Size: 10527 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20130709/c8b9925f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-akoneru-0066-Fix-issues-reported-by-pylint.patch
Type: text/x-patch
Size: 13321 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20130709/c8b9925f/attachment-0001.bin>


More information about the Pki-devel mailing list