Skip to content

Commit

Permalink
Merge pull request #373 from ed-velez/pylint_fixes
Browse files Browse the repository at this point in the history
Pylint Fixes
  • Loading branch information
soulen3 authored Mar 19, 2024
2 parents 2e1d260 + 3ac52ea commit 9c21288
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ min-public-methods=1
[EXCEPTIONS]

# Exceptions that will emit a warning when caught.
overgeneral-exceptions=BaseException,
Exception
overgeneral-exceptions=builtins.BaseException,
builtins.Exception


[FORMAT]
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline {
sh '''apt-get update
apt-get install -y python3-pip python3-psycopg2 rsync
pip3 install configobj
pip3 install pylint
pip3 install 'pylint>=2.17.0,<3.0.0'
pip3 install six
python3 --version'''
}
Expand Down
3 changes: 1 addition & 2 deletions contrib/holland-commvault/holland_commvault/commvault.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ def main():
except IOError:
logging.info("Holland (commvault agent) failed to open/read status file")
return 1
else:
status.close()
status.close()
return ret
except IOError as ex:
logging.warning("Holland (commvault agent) IOError: %r", ex)
Expand Down
6 changes: 2 additions & 4 deletions holland/core/util/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def acquire(self):
except IOError as exc:
self.lock = None
raise LockError(str(exc), exc)
else:
return True
return True

def is_locked(self):
"""Check for lock"""
Expand All @@ -48,5 +47,4 @@ def release(self):
self.lock = None
except IOError as exc:
raise LockError(str(exc), exc)
else:
return True
return True
3 changes: 2 additions & 1 deletion plugins/holland.lib.mysql/holland/lib/mysql/option/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
http://dev.mysql.com/doc/refman/5.1/en/option-files.html
"""

import codecs
import logging
import os
Expand All @@ -13,7 +14,7 @@

def merge_options(*defaults_files):
"""Merge multiple defaults files together"""
defaults_config = dict(client={})
defaults_config = {"client": {}}

def merge(dst_dict, src_dict):
"""Merge two dictionaries non-destructively"""
Expand Down

0 comments on commit 9c21288

Please sign in to comment.