Weird bug
This commit is contained in:
parent
fbec245501
commit
de805696e2
5 changed files with 15 additions and 5 deletions
|
|
@ -20,6 +20,9 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
|
||||
try:
|
||||
from libray import iso
|
||||
|
|
|
|||
|
|
@ -110,13 +110,13 @@ class IRD:
|
|||
with open(filename, 'rb') as input_ird:
|
||||
if input_ird.read(4) != self.MAGIC_STRING:
|
||||
uncompress = True
|
||||
|
||||
|
||||
if uncompress:
|
||||
with gzip.open(filename, 'rb') as gzfile:
|
||||
with open(self.TEMP_FILE, 'wb') as tmpfile:
|
||||
tmpfile.write(gzfile.read())
|
||||
else:
|
||||
shutil.copyfile(filename, self.TEMP_FILE)
|
||||
|
||||
shutil.copyfile(filename, self.TEMP_FILE)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue