Skip to content

Commit

Permalink
Use stdlib bz2 instead of bz2file
Browse files Browse the repository at this point in the history
  • Loading branch information
tillea authored and mr-c committed Aug 22, 2022
1 parent 9dafc78 commit cf39e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions khmer/kfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import errno
from stat import S_ISBLK, S_ISFIFO, S_ISCHR
import gzip
import bz2file
import bz2


def check_input_files(file_path, force):
Expand Down Expand Up @@ -241,7 +241,7 @@ def get_file_writer(file_handle, do_gzip, do_bzip):
if do_gzip:
ofile = gzip.GzipFile(fileobj=file_handle, mode='w')
elif do_bzip:
ofile = bz2file.open(file_handle, mode='w')
ofile = bz2.open(file_handle, mode='w')
else:
ofile = file_handle

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def build_dir():
"packages": ['khmer', 'khmer.tests', 'oxli', 'khmer._oxli'],
"package_data": {'khmer/_oxli': ['*.pxd']},
"package_dir": {'khmer.tests': 'tests'},
"install_requires": ['screed>=1.0', 'bz2file'],
"install_requires": ['screed>=1.0'],
"setup_requires": ['setuptools>=18.0'],
"extras_require": {':python_version=="2.6"': ['argparse>=1.2.1'],
'docs': ['sphinx', 'sphinxcontrib-autoprogram'],
Expand Down

0 comments on commit cf39e0b

Please sign in to comment.