From 6ba3e3f20d7d52895bc44f9fc35b068cfce47133 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 25 Jul 2015 17:14:23 +0200 Subject: _MASSIVE_ pep8 revamp Thank you so much PyCharm --- libmat/images.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libmat/images.py') diff --git a/libmat/images.py b/libmat/images.py index 67c710f..0c4f3e0 100644 --- a/libmat/images.py +++ b/libmat/images.py @@ -1,23 +1,23 @@ -''' Takes care about pictures formats +""" Takes care about pictures formats References: - JFIF: http://www.ecma-international.org/publications/techreports/E-TR-098.htm - PNG: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/PNG.html - PNG: http://www.w3.org/TR/PNG-Chunks.html -''' +""" import parser class JpegStripper(parser.GenericParser): - ''' Represents a jpeg file. + """ Represents a jpeg file. Custom Huffman and Quantization tables are stripped: they may leak some info, and the quality loss is minor. - ''' + """ def _should_remove(self, field): - ''' Return True if the field is compromising - ''' + """ Return True if the field is compromising + """ field_list = frozenset([ 'start_image', # start of the image 'app0', # JFIF data @@ -35,11 +35,11 @@ class JpegStripper(parser.GenericParser): class PngStripper(parser.GenericParser): - ''' Represents a png file - ''' + """ Represents a png file + """ def _should_remove(self, field): - ''' Return True if the field is compromising - ''' + """ Return True if the field is compromising + """ field_list = frozenset([ 'id', 'header', # PNG header -- cgit v1.3