Skip to content

Commit

Permalink
[general/pylint] re-enable W0105: pointless-string-statement
Browse files Browse the repository at this point in the history
Signed-off-by: Ponnuvel Palaniyappan <[email protected]>
  • Loading branch information
pponnuvel authored and TurboTurtle committed Jul 21, 2024
1 parent 1b02085 commit 0fad974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ disable=
R1718, # consider-using-set-comprehension
R1721, # unnecessary-comprehension
R1722, # consider-using-sys-exit
W0105, # pointless-string-statement
W0108, # unnecessary-lambda
W0222, # signature-differs
W0223, # abstract-method
Expand Down
5 changes: 2 additions & 3 deletions sos/cleaner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,8 @@ def write_map_for_config(self, _map):
"""
if self.opts.map_file and not self.opts.no_update:
cleaner_dir = os.path.dirname(self.opts.map_file)
""" Attempt to create the directory /etc/sos/cleaner
just in case it didn't exist previously
"""
# Attempt to create the directory /etc/sos/cleaner
# just in case it didn't exist previously
try:
os.makedirs(cleaner_dir, exist_ok=True)
self.write_map_to_file(_map, self.opts.map_file)
Expand Down

0 comments on commit 0fad974

Please sign in to comment.