Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
remove end of file banner from all files
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Jul 10, 2016
1 parent 5ece454 commit 1ba4e9e
Show file tree
Hide file tree
Showing 144 changed files with 2 additions and 289 deletions.
2 changes: 0 additions & 2 deletions PIL/FontFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,3 @@ def save(self, filename):
else:
puti16(fp, m[0] + m[1] + m[2])
fp.close()

# End of file
2 changes: 0 additions & 2 deletions PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2521,5 +2521,3 @@ def effect_noise(size, sigma):
:param sigma: Standard deviation of noise.
"""
return Image()._new(core.effect_noise(size, sigma))

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,5 +969,3 @@ def versions():
print(doc)
except (AttributeError, TypeError):
pass

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageDraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,5 +380,3 @@ def floodfill(image, xy, value, border=None):
pixel[s, t] = value
newedge.append((s, t))
edge = newedge

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,5 +433,3 @@ def load_default():
w7IkEbzhVQAAAABJRU5ErkJggg==
'''))))
return f

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageMath.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,3 @@ def eval(expression, _dict={}, **kw):
return out.im
except AttributeError:
return out

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ def getmode(mode):
_modes["I;16L"] = ModeDescriptor("I;16L", "I", "L", "L")
_modes["I;16B"] = ModeDescriptor("I;16B", "I", "L", "L")
return _modes[mode]

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageMorph.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,3 @@ def save_lut(self, filename):
def set_lut(self, lut):
"""Set the lut from an external source"""
self.lut = lut

# End of file
2 changes: 0 additions & 2 deletions PIL/ImagePath.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,3 @@ def transform(self, matrix):

# override with C implementation
Path = Image.core.path

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageShow.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,3 @@ def get_command_ex(self, file, title=None, **options):
if __name__ == "__main__":
# usage: python ImageShow.py imagefile [title]
print(show(Image.open(sys.argv[1]), *sys.argv[2:]))

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageTk.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,3 @@ def __init__(self, master, im):
if title:
top.title(title)
UI(top, image).pack()

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageTransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ class MeshTransform(Transform):
@see Image#Image.transform
"""
method = Image.MESH

# End of file
2 changes: 0 additions & 2 deletions PIL/ImageWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,3 @@ def __init__(self, image, title="PIL"):

def ui_handle_repair(self, dc, x0, y0, x1, y1):
self.image.draw(dc, (x0, y0, x1, y1))

# End of file
2 changes: 0 additions & 2 deletions PIL/PyAccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,5 +317,3 @@ def new(img, readonly=False):
logger.debug("PyAccess Not Implemented: %s", img.mode)
return None
return access_type(img, readonly)

# End of file
2 changes: 0 additions & 2 deletions PIL/SgiImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,3 @@ def _open(self):
Image.register_extension(SgiImageFile.format, ".rgb")
Image.register_extension(SgiImageFile.format, ".rgba")
Image.register_extension(SgiImageFile.format, ".sgi")

# End of file
2 changes: 0 additions & 2 deletions PIL/_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,3 @@ def o16be(i):

def o32be(i):
return pack(">I", i)

# End of file
2 changes: 0 additions & 2 deletions Scripts/createfontdatachunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@
print("''')), Image.open(BytesIO(base64.decodestring(b'''")
base64.encode(open(font + ".pbm", "rb"), sys.stdout)
print("'''))))")

# End of file
2 changes: 0 additions & 2 deletions Tests/bench_cffi_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ def test_direct(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/check_large_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ def test_2gpx(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/check_large_memory_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ def test_2gpx(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,3 @@ def on_appveyor():
IMCONVERT = os.path.join(IMCONVERT, 'convert.exe')
else:
IMCONVERT = 'convert'

# End of file
2 changes: 0 additions & 2 deletions Tests/test_000_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ def test_sanity(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ def test_big_endian(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_bmp_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,3 @@ def get_compare(f):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_box_blur.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,3 @@ def test_three_passes(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_decompression_bomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ def test_warning(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ def test_unsupported_module(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_bmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,3 @@ def test_load_dib(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_bufrstub.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_cur.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_dcx.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,3 @@ def test_seek_too_far(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,3 @@ def short_file():

if __name__ == '__main__':
unittest.main()

# End of file
4 changes: 1 addition & 3 deletions Tests/test_file_eps.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_cmyk(self):
self.assertEqual(cmyk_image.mode, "CMYK")
self.assertEqual(cmyk_image.size, (100, 100))
self.assertEqual(cmyk_image.format, "EPS")

cmyk_image.load()
self.assertEqual(cmyk_image.mode, "RGB")

Expand Down Expand Up @@ -267,5 +267,3 @@ def test_open_eps(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_fitsstub.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_fli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ def test_eoferror(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_fpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_gbr.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ def test_gbr_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,3 @@ def test_version(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_gimpgradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,3 @@ def test_load_1_3_via_imagepalette(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_gimppalette.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ def test_get_palette(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_gribstub.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_hdf5stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_icns.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@ def test_jp2_icon(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_ico.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ def test_save_to_bytes(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_im.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_iptc.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,3 @@ def test_dump(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_jpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,5 +453,3 @@ def test_bad_mpo_header(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_jpeg2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,3 @@ def test_unbound_local(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_libtiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,5 +507,3 @@ def test_page_number_x_0(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_libtiff_small.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ def test_g4_hopper(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_mcidas.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_mic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_mpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,3 @@ def test_save(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_msp.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ def test_cannot_save_wrong_mode(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_palm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ def test_rgb_ioerror(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_pcx.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ def test_pil184(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ def test_save_all(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,5 +502,3 @@ def test_repr_png(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_ppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ def test_truncated_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_psd.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ def test_eoferror(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_sgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ def test_invalid_file(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,3 @@ def test_nonstack_dos(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_sun.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ def test_sanity(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ def test_sanity(self):

if __name__ == '__main__':
unittest.main()

# End of file
2 changes: 0 additions & 2 deletions Tests/test_file_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,3 @@ def test_open_tiff_uint16(self):

if __name__ == '__main__':
unittest.main()

# End of file
Loading

0 comments on commit 1ba4e9e

Please sign in to comment.