Skip to content

Commit

Permalink
Merge pull request #545 from Msegade/master
Browse files Browse the repository at this point in the history
Changing string to byte literal in Struct format
  • Loading branch information
SteveDoyle2 committed Jan 21, 2019
2 parents f113cac + 6a22da4 commit f3968e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyNastran/op2/op2_interface/op2_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ def _read_complex_table_sort2_mag(self, data, is_vectorized, nnodes, result_name
pass
else:
n = 0
s = Struct(self._endian + self._analysis_code_fmt + 'i12f')
s = Struct(self._endian + self._analysis_code_fmt + b'i12f')
binary_debug_fmt = ' %s=%s %%s\n' % (flag, flag_type)
for unused_inode in range(nnodes):
edata = data[n:n+56]
Expand Down Expand Up @@ -1338,7 +1338,7 @@ def _read_complex_table_sort2_imag(self, data, is_vectorized, nnodes, result_nam
else:
n = 0
#ntotal = 56 # 14 * 4
s = Struct(self._endian + self._analysis_code_fmt + 'i12f')
s = Struct(self._endian + self._analysis_code_fmt + b'i12f')
assert self.obj is not None
assert nnodes > 0
#assert ndata % ntotal == 0
Expand Down

0 comments on commit f3968e9

Please sign in to comment.