Weird bug

This commit is contained in:
Nichlas Severinsen 2018-07-07 11:12:05 +02:00
parent fbec245501
commit de805696e2
5 changed files with 15 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
*.iso
*.ird
*.gz
# Byte-compiled / optimized / DLL files
__pycache__/

View file

@ -20,6 +20,9 @@
import os
import sys
import requests
from bs4 import BeautifulSoup
try:
from libray import iso

View file

@ -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)

View file

@ -1 +1,3 @@
pycrypto==2.6.1
pycrypto==2.6.1
requests==2.19.1
beautifulsoup4==4.6.0

View file

@ -12,5 +12,9 @@ setup(
url="https://notabug.org/necklace/libray",
packages=['libray'],
scripts=['libray/libray'],
install_requires=['pycrypto==2.6.1'],
install_requires=[
'pycrypto==2.6.1',
'requests==2.19.1',
'beautifulsoup4==4.6.0'
],
)