Remove whitespace operator flake8 problems
@@ -316,7 +316,7 @@ def encode(tsig, *l):
v = fun[tsig](*l)
# Padd tsig out with spaces.
tsig = (tsig + ' ')[: 4]
- return tsig + '\x00'*4 + v
+ return tsig + ('\x00' * 4) + v
def tagblock(tag):
"""`tag` should be a list of (*signature*, *element*) pairs, where
@@ -352,8 +352,10 @@ def iccp(out, inp):
print >>out, profile.tag
def profileFromPNG(inp):
- """Extract profile from PNG file. Return (*profile*, *name*)
- pair."""
+ """
+ Extract profile from PNG file. Return (*profile*, *name*)
+ pair.
+ """
r = png.Reader(file=inp)
_,chunk = r.chunk('iCCP')
i = chunk.index('\x00')
@@ -512,8 +514,7 @@ def RDvcgt(s):
def group(s, n):
- # See
- # http://www.python.org/doc/2.6/library/functions.html#zip
+ # See http://www.python.org/doc/2.6/library/functions.html#zip
return zip(* [iter(s)] * n)
