Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -5,7 +5,10 @@ class BitWriter:
|
|||
self.out = f
|
||||
|
||||
def __del__(self):
|
||||
self.flush()
|
||||
try:
|
||||
self.flush()
|
||||
except ValueError: # I/O operation on closed file
|
||||
pass
|
||||
|
||||
def writebit(self, bit):
|
||||
if self.bcount == 8 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue