Mercurial > touhou
comparison pytouhou/formats/pbg3.py @ 252:b5c7369abd7c
Improve data reading perfs
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 22 Jan 2012 15:54:51 +0100 |
parents | 88361534c77e |
children | 70e2ed71b09c |
comparison
equal
deleted
inserted
replaced
251:4b549894ef6b | 252:b5c7369abd7c |
---|---|
77 entries -- list of PBG3Entry objects describing files present in the archive | 77 entries -- list of PBG3Entry objects describing files present in the archive |
78 bitstream -- PBG3BitStream object | 78 bitstream -- PBG3BitStream object |
79 """ | 79 """ |
80 | 80 |
81 def __init__(self, entries=None, bitstream=None): | 81 def __init__(self, entries=None, bitstream=None): |
82 self.entries = entries or [] | 82 self.entries = entries or {} |
83 self.bitstream = bitstream #TODO | 83 self.bitstream = bitstream #TODO |
84 | 84 |
85 | 85 |
86 def __enter__(self): | 86 def __enter__(self): |
87 return self | 87 return self |