Skip to content

Commit

Permalink
pyvisa: run new black version
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Aug 26, 2020
1 parent 534823b commit efa7e77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyvisa/testsuite/test_env_var_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_reading_wrap_handler(self):

env = os.environ.copy()
env["PYVISA_WRAP_HANDLER"] = "0"
with Popen([sys.executable], stdin=PIPE, stdout=PIPE, env=env,) as p:
with Popen([sys.executable], stdin=PIPE, stdout=PIPE, env=env) as p:
stdout, _ = p.communicate(
b"from pyvisa import ctwrapper;print(ctwrapper.WRAP_HANDLER);exit()"
)
Expand Down
6 changes: 3 additions & 3 deletions pyvisa/thirdparty/prettytable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ def _stringify_header(self, options):
bits.append(options["vertical_char"])
else:
bits.append(" ")
for (field, width,) in zip(self._field_names, self._widths):
for (field, width) in zip(self._field_names, self._widths):
if options["fields"] and field not in options["fields"]:
continue
if self._header_style == "cap":
Expand Down Expand Up @@ -1419,7 +1419,7 @@ def _stringify_header(self, options):

def _stringify_row(self, row, options):

for (index, field, value, width,) in zip(
for (index, field, value, width) in zip(
range(0, len(row)), self._field_names, row, self._widths
):
# Enforce max widths
Expand Down Expand Up @@ -1449,7 +1449,7 @@ def _stringify_row(self, row, options):
else:
bits[y].append(" ")

for (field, value, width,) in zip(self._field_names, row, self._widths):
for (field, value, width) in zip(self._field_names, row, self._widths):

valign = self._valign[field]
lines = value.split("\n")
Expand Down

0 comments on commit efa7e77

Please sign in to comment.