Skip to content

Commit cdbd94f

Browse files
committed
Apply black style
1 parent b95d3e5 commit cdbd94f

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

pandas/io/sas/sas7bdat.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,11 @@ def _process_columnsize_subheader(self, offset, length):
456456
offset += int_len
457457
self.column_count = self._read_int(offset, int_len)
458458
if self.col_count_p1 + self.col_count_p2 != self.column_count:
459-
print(f"Warning: column count mismatch ({self.col_count_p1} + "
460-
f"{self.col_count_p2} != "
461-
f"{self.column_count})\n")
459+
print(
460+
f"Warning: column count mismatch ({self.col_count_p1} + "
461+
f"{self.col_count_p2} != "
462+
f"{self.column_count})\n"
463+
)
462464

463465
# Unknown purpose
464466
def _process_subheader_counts(self, offset, length):
@@ -667,9 +669,11 @@ def _read_next_page(self):
667669
return True
668670
elif len(self._cached_page) != self._page_length:
669671
self.close()
670-
msg = ("failed to read complete page from file (read "
671-
f"{len(self._cached_page):d} of "
672-
f"{self._page_length:d} bytes)")
672+
msg = (
673+
"failed to read complete page from file (read "
674+
f"{len(self._cached_page):d} of "
675+
f"{self._page_length:d} bytes)"
676+
)
673677
raise ValueError(msg)
674678

675679
self._read_page_header()

pandas/tests/io/sas/test_sas7bdat.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ def test_path_localpath(self):
8484
for j in 0, 1:
8585
df0 = self.data[j]
8686
for k in self.test_ix[j]:
87-
fname = LocalPath(
88-
os.path.join(self.dirpath, f"test{k}.sas7bdat")
89-
)
87+
fname = LocalPath(os.path.join(self.dirpath, f"test{k}.sas7bdat"))
9088
df = pd.read_sas(fname, encoding="utf-8")
9189
tm.assert_frame_equal(df, df0)
9290

0 commit comments

Comments
 (0)