(n)
| 232 | raise "illegal distance code" |
| 233 | |
| 234 | def extra_length_bits(n): |
| 235 | if 257 <= n <= 260 or n == 285: |
| 236 | return 0 |
| 237 | elif 261 <= n <= 284: |
| 238 | return ((n-257) >> 2) - 1 |
| 239 | else: |
| 240 | raise "illegal length code" |
| 241 | |
| 242 | def move_to_front(l, c): |
| 243 | l[:] = l[c:c+1] + l[0:c] + l[c+1:] |