Commit 7a9067b
committed
Fix Current Pylint Errors
= Before The Patch
We'd get the following error from our `pylint` action:
```
************* Module sdb.pipeline
sdb/pipeline.py:132:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
************* Module sdb.commands.zfs.histograms
sdb/commands/zfs/histograms.py:136:8: R1731: Consider using 'max_count = max(max_count, HISTOGRAM_WIDTH_MAX)' instead of unnecessary if block (consider-using-max-builtin)
```
= After the Patch
Pylint runs fine with no errors1 parent d0cb398 commit 7a9067b
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
0 commit comments