Skip to content

Commit 45a1cbc

Browse files
authored
Update sas7bdat.py
1 parent f0cfb87 commit 45a1cbc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/io/sas/sas7bdat.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,8 @@ def _get_properties(self) -> None:
239239
raise ValueError("magic number mismatch (not a SAS file?)")
240240

241241
# Get alignment information
242-
align1, align2 = 0, 0
243242
buf = self._read_bytes(const.align_1_offset, const.align_1_length)
244243
if buf == const.u64_byte_checker_value:
245-
align2 = const.align_2_value
246244
self.U64 = True
247245
self._int_length = 8
248246
self._page_bit_offset = const.page_bit_offset_x64
@@ -255,7 +253,8 @@ def _get_properties(self) -> None:
255253
buf = self._read_bytes(const.align_2_offset, const.align_2_length)
256254
if buf == const.align_1_checker_value:
257255
align1 = const.align_2_value
258-
total_align = align1 + align2
256+
else:
257+
align1 = 0
259258

260259
# Get endianness information
261260
buf = self._read_bytes(const.endianness_offset, const.endianness_length)

0 commit comments

Comments
 (0)