add --dump to preamble_size.py.

pull/350/head
David Wilson 6 years ago
parent a561fb79e5
commit 8b800e4798

@ -4,6 +4,7 @@ contexts.
""" """
import inspect import inspect
import sys
import zlib import zlib
import mitogen.fakessh import mitogen.fakessh
@ -24,6 +25,10 @@ print('Preamble size: %s (%.2fKiB)' % (
len(stream.get_preamble()), len(stream.get_preamble()),
len(stream.get_preamble()) / 1024.0, len(stream.get_preamble()) / 1024.0,
)) ))
if '--dump' in sys.argv:
print(zlib.decompress(stream.get_preamble()))
exit()
print( print(
' ' ' '

Loading…
Cancel
Save