Fix pylint 'E' (error) codes
This patch adds some silences and tweaks the code slightly so that “pylint --rcfile pylintrc -e ganeti” doesn't give any errors. The biggest change is in jqueue.py, the move of _RequireOpenQueue out of the JobQueue class. Since that is actually a function and not a method (never used as such) this makes sense, and also silences two pylint errors. Another real code change is in utils.py, where FieldSet.Matches will return None instead of False for failure; this still works with the way this class/method is used, and makes more sense (it resembles more closely the re.match return values). Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
Showing
- lib/backend.py 6 additions, 0 deletionslib/backend.py
- lib/confd/client.py 5 additions, 1 deletionlib/confd/client.py
- lib/http/client.py 7 additions, 0 deletionslib/http/client.py
- lib/jqueue.py 24 additions, 20 deletionslib/jqueue.py
- lib/objects.py 5 additions, 0 deletionslib/objects.py
- lib/storage.py 1 addition, 0 deletionslib/storage.py
- lib/utils.py 2 additions, 2 deletionslib/utils.py
Loading
Please register or sign in to comment