(sz, string)
| 482 | reset='\033[0m' |
| 483 | |
| 484 | def sizeToColor(sz, string): |
| 485 | if sz == 1: |
| 486 | c = colors.red |
| 487 | elif sz < 10: |
| 488 | c = colors.lightred |
| 489 | elif sz < 70: |
| 490 | c = colors.lightgreen |
| 491 | else: |
| 492 | c = colors.green |
| 493 | |
| 494 | return c + string + colors.reset |
| 495 | # Sixteen bits of magic have been removed by the time we start decoding |
| 496 | def gzip_main(field): |
| 497 | b = Bitfield(field) |