diff options
author | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-06-25 01:05:20 +0530 |
---|---|---|
committer | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-06-25 01:05:20 +0530 |
commit | 8ca29679dfc9248d5c867b566df67213d4ab0951 (patch) | |
tree | 48af90817cdd49f9ff5ba8099afdf3196c4ce5e7 /mitmproxy/contentviews | |
parent | e81144e26b35aea3e2a4293b256228581a44288a (diff) | |
download | mitmproxy-8ca29679dfc9248d5c867b566df67213d4ab0951.tar.gz mitmproxy-8ca29679dfc9248d5c867b566df67213d4ab0951.tar.bz2 mitmproxy-8ca29679dfc9248d5c867b566df67213d4ab0951.zip |
Added test
Diffstat (limited to 'mitmproxy/contentviews')
-rw-r--r-- | mitmproxy/contentviews/image/image_parser.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mitmproxy/contentviews/image/image_parser.py b/mitmproxy/contentviews/image/image_parser.py index 46549b1b..aa6f8450 100644 --- a/mitmproxy/contentviews/image/image_parser.py +++ b/mitmproxy/contentviews/image/image_parser.py @@ -91,11 +91,12 @@ def parse_ico(data: bytes) -> Metadata: for i, image in enumerate(img.images): parts.append( ( - 'Image {}'.format(i), "Size: {} x {}\n " - "Bits per pixel: {}\n " - "PNG: {}".format(256 if not image.width else image.width, - 256 if not image.height else image.height, - image.bpp, image.is_png) + 'Image {}'.format(i+1), "Size: {} x {}\n" + "{: >18}Bits per pixel: {}\n" + "{: >18}PNG: {}".format(256 if not image.width else image.width, + 256 if not image.height else image.height, + '', image.bpp, + '', image.is_png) ) ) |