Skip to content

Commit

Permalink
Merge 1c5d205 into 76d156b
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Nov 11, 2016
2 parents 76d156b + 1c5d205 commit ca49311
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion PIL/BdfFontFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class BdfFontFile(FontFile.FontFile):

def __init__(self, fp):

FontFile.FontFile.__init__(self)
super(BdfFontFile, self).__init__()

s = fp.readline()
if s[:13] != b"STARTFONT 2.1":
Expand Down
2 changes: 1 addition & 1 deletion PIL/ImageFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ImageFile(Image.Image):
"Base class for image file format handlers."

def __init__(self, fp=None, filename=None):
Image.Image.__init__(self)
super(ImageFile, self).__init__()

self.tile = None
self.readonly = 1 # until we know better
Expand Down
6 changes: 3 additions & 3 deletions PIL/ImageQt.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ def __init__(self, im):
# buffer, so this buffer has to hang on for the life of the image.
# Fixes https://github.com/python-pillow/Pillow/issues/1370
self.__data = im_data['data']
QImage.__init__(self,
self.__data, im_data['im'].size[0],
im_data['im'].size[1], im_data['format'])
super(QImage, self).__init__(
self.__data, im_data['im'].size[0],
im_data['im'].size[1], im_data['format'])
if im_data['colortable']:
self.setColorTable(im_data['colortable'])

Expand Down
3 changes: 1 addition & 2 deletions PIL/ImageTk.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ def __init__(self, master, im):
self.image = BitmapImage(im, foreground="white", master=master)
else:
self.image = PhotoImage(im, master=master)
tkinter.Label.__init__(self, master, image=self.image,
bg="black", bd=0)
super(UI, self).__init__(master, image=self.image, bg="black", bd=0)

if not tkinter._default_root:
raise IOError("tkinter not initialized")
Expand Down
2 changes: 1 addition & 1 deletion PIL/ImageWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def __init__(self, image, title="PIL"):
image = Dib(image)
self.image = image
width, height = image.size
Window.__init__(self, title, width=width, height=height)
super(ImageWindow, self).__init__(title, width=width, height=height)

def ui_handle_repair(self, dc, x0, y0, x1, y1):
self.image.draw(dc, (x0, y0, x1, y1))
2 changes: 1 addition & 1 deletion PIL/PcfFontFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, fp):
if magic != PCF_MAGIC:
raise SyntaxError("not a PCF file")

FontFile.FontFile.__init__(self)
super(PcfFontFile, self).__init__()

count = l32(fp.read(4))
self.toc = {}
Expand Down
2 changes: 1 addition & 1 deletion PIL/PngImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class PngStream(ChunkStream):

def __init__(self, fp):

ChunkStream.__init__(self, fp)
super(PngStream, self).__init__(fp)

# local copies of Image attributes
self.im_info = {}
Expand Down
2 changes: 1 addition & 1 deletion PIL/TarIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ def __init__(self, tarfile, file):
fh.seek((size + 511) & (~511), 1)

# Open region
ContainerIO.ContainerIO.__init__(self, fh, fh.tell(), size)
super(TarIO, self).__init__(fh, fh.tell(), size)
2 changes: 1 addition & 1 deletion PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ class ImageFileDirectory_v1(ImageFileDirectory_v2):
.. deprecated:: 3.0.0
"""
def __init__(self, *args, **kwargs):
ImageFileDirectory_v2.__init__(self, *args, **kwargs)
super(ImageFileDirectory_v1, self).__init__(*args, **kwargs)
self._legacy_api = True

tags = property(lambda self: self._tags_v1)
Expand Down
2 changes: 1 addition & 1 deletion Scripts/enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class Enhance(Frame):
def __init__(self, master, image, name, enhancer, lo, hi):
Frame.__init__(self, master)
super(Enhance, self).__init__(master)

# set up the image
self.tkim = ImageTk.PhotoImage(image.mode, image.size)
Expand Down
2 changes: 1 addition & 1 deletion Scripts/painter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class PaintCanvas(Canvas):
def __init__(self, master, image):
Canvas.__init__(self, master, width=image.size[0], height=image.size[1])
super(PaintCanvas, self).__init__(master, width=image.size[0], height=image.size[1])

# fill the canvas
self.tile = {}
Expand Down
2 changes: 1 addition & 1 deletion Scripts/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, master, im):
else:
self.image = ImageTk.PhotoImage(im)

Label.__init__(self, master, image=self.image, bg="black", bd=0)
super(UI, self).__init__(master, image=self.image, bg="black", bd=0)

self.update()

Expand Down
2 changes: 1 addition & 1 deletion Scripts/thresholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class UI(Frame):
def __init__(self, master, im, value=128):
Frame.__init__(self, master)
super(UI, self).__init__(master)

self.image = im
self.value = value
Expand Down
4 changes: 2 additions & 2 deletions Scripts/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def __init__(self, master, im):
if im.mode == "1":
# bitmap image
self.image = ImageTk.BitmapImage(im, foreground="white")
Label.__init__(self, master, image=self.image, bg="black", bd=0)
super(UI, self).__init__(master, image=self.image, bg="black", bd=0)

else:
# photo image
self.image = ImageTk.PhotoImage(im)
Label.__init__(self, master, image=self.image, bd=0)
super(UI, self).__init__(master, image=self.image, bd=0)

#
# script interface
Expand Down
2 changes: 1 addition & 1 deletion Tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class PillowTestCase(unittest.TestCase):

def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
super(PillowTestCase, self).__init__(*args, **kwargs)
# holds last result object passed to run method:
self.currentResult = None

Expand Down

0 comments on commit ca49311

Please sign in to comment.