Skip to content

Commit

Permalink
Merge pull request #278 from sdimitro/fix_pylint_0
Browse files Browse the repository at this point in the history
Fix Current Pylint Errors
  • Loading branch information
sdimitro authored Apr 29, 2021
2 parents d0cb398 + 7a9067b commit 3e6c69a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions sdb/commands/zfs/histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def print_histogram(hist: drgn.Object,
max_count = count

HISTOGRAM_WIDTH_MAX = 40
if max_count < HISTOGRAM_WIDTH_MAX:
max_count = HISTOGRAM_WIDTH_MAX
max_count = max(max_count, HISTOGRAM_WIDTH_MAX)

if min_bucket > max_bucket:
print(f'{" " * indent}** No histogram data available **')
Expand Down
6 changes: 6 additions & 0 deletions sdb/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ def invoke(myprog: drgn.Program, first_input: Iterable[drgn.Object],
# at the end.
#
if shell_cmd is not None:
#
# This is a false-positive from pylint as we need
# to explicitly wait for shell_proc to be done and
# re-arrange our std_out.
#
# pylint: disable=consider-using-with
shell_proc = subprocess.Popen(shell_cmd,
shell=True,
stdin=subprocess.PIPE,
Expand Down

0 comments on commit 3e6c69a

Please sign in to comment.