mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Fixed whitespace
This commit is contained in:
parent
06f4cd62ad
commit
cbc056f43d
|
@ -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:
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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]:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user