MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/578534_parse_png_image/recipe-578534.py:52–61  ·  view source on GitHub ↗
(self,file)

Source from the content-addressed store, hash-verified

50
51
52 def __init__(self,file):
53 self.FileName=file
54 file=open(self.FileName,'r')
55 data=file.read()
56 data=binascii.hexlify(data)
57 vals=self.byts(data)
58 self.data=vals
59 self.header=self.data[:8]
60 self.header=''.join(self.header)
61 self.Find_Chunks()
62x=PNG('/root/th_grey3.png')
63print x.hight,x.hight

Callers

nothing calls this directly

Calls 5

bytsMethod · 0.95
Find_ChunksMethod · 0.95
openFunction · 0.50
readMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected