Fixed whitespace

This commit is contained in:
Andrew Murray 2018-04-09 23:48:36 +10:00
parent 06f4cd62ad
commit cbc056f43d
5 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ class TestFontPcf(PillowTestCase):
def _test_high_characters(self, message):
tempname = self.save_font()
font = ImageFont.load(tempname)
im = Image.new("L", (750, 30) , "white")
im = Image.new("L", (750, 30), "white")
draw = ImageDraw.Draw(im)
draw.text((0, 0), message, "black", font=font)
with Image.open('Tests/images/high_ascii_chars.png') as target:

View File

@ -295,7 +295,7 @@ int main(int argc, char* argv[])
compiler.add_include_dir(sysconfig.get_python_inc())
libdir = sysconfig.get_config_var('LIBDIR') or sysconfig.get_python_inc().replace('include', 'libs')
print (libdir)
print(libdir)
compiler.add_library_dir(libdir)
objects = compiler.compile(['embed_pil.c'])
compiler.link_executable(objects, 'embed_pil')

View File

@ -59,7 +59,7 @@ class TestImageTransform(PillowTestCase):
(0, 0,
w*2, h*2),
Image.BILINEAR,
fillcolor = 'red')
fillcolor='red')
self.assertEqual(transformed.getpixel((w-1, h-1)), (255, 0, 0))

View File

@ -310,7 +310,7 @@ def _save(im, fp, filename):
# create the temporary set of pngs
iconset = tempfile.mkdtemp('.iconset')
provided_images = {im.width:im for im in
provided_images = {im.width: im for im in
im.encoderinfo.get("append_images", [])}
last_w = None
for w in [16, 32, 128, 256, 512]:

View File

@ -211,7 +211,7 @@ class PdfName:
def from_pdf_stream(klass, data):
return klass(PdfParser.interpret_name(data))
allowed_chars = set(range(33,127)) - set(ord(c) for c in "#%/()<>[]{}")
allowed_chars = set(range(33, 127)) - set(ord(c) for c in "#%/()<>[]{}")
def __bytes__(self):
if str == bytes: # Python 2.x