Closed bbotella closed 8 years ago
Hm, the import in compression.py
should be changed to be dynamic too, replacing the hardcoded with something like this at the end of the file:
try:
from bz2file import BZ2File
except ImportError:
pass
else:
FILE_COMPRESSION['bz2'] = lambda path: BZ2File(path, 'a')
Right. Will do it.
Btw, tip: if you put "close #ISSUE_ID" in the PR title, it will close the issue automatically when merged :)
@bbotella kinda miss nitpicking your PRs! :laughing:
Neat, will merge when build finishes! Thanks @bbotella ! :heart:
Handling https://github.com/scrapinghub/exporters/issues/306