Skip to content

Commit

Permalink
[parser] reformat for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Apr 15, 2024
1 parent c1cb31b commit dd9f7b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bitsparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1913,9 +1913,8 @@ def de_interleave3(group):

def de_interleave_lcw(bits):
tbl= [ 40, 39, 36, 35, 32, 31, 28, 27, 24, 23, 20, 19, 16, 15, 12, 11, 8, 7, 4, 3,
41,
38, 37, 34, 33, 30, 29, 26, 25, 22, 21, 18, 17, 14, 13, 10, 9, 6, 5, 2, 1, 46, 45, 44, 43,
42]
41, 38, 37, 34, 33, 30, 29, 26, 25, 22, 21, 18, 17, 14, 13, 10, 9, 6, 5, 2,
1, 46, 45, 44, 43, 42]
lcw=[bits[x-1:x] for x in tbl]
return (''.join(lcw[:7]),''.join(lcw[7:20]),''.join(lcw[20:]))

Expand Down

0 comments on commit dd9f7b4

Please sign in to comment.