Skip to content

Commit

Permalink
[MRG] remove bz2file in favor of bz2 (#99)
Browse files Browse the repository at this point in the history
* bump pip/tox cache version numbers

* rename whitelist_externals to allowlist_externals

* remove bz2file => bz2
  • Loading branch information
ctb authored Jan 10, 2023
1 parent c4fd0e4 commit 6fb3e49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions screed/openscreed.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import io
import sys
import gzip
import bz2file
import bz2
from collections.abc import MutableMapping

try:
Expand Down Expand Up @@ -58,7 +58,7 @@ def open_reader(self, filename, *args, **kwargs):
compression = ftype
break
if compression == 'bz2':
sequencefile = bz2file.BZ2File(filename=bufferedfile)
sequencefile = bz2.BZ2File(filename=bufferedfile)
peek = sequencefile.peek(1)
elif compression == 'gz':
if not bufferedfile.seekable():
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ zip_safe = False
packages = find:
platforms = any
include_package_data = True
install_requires =
bz2file
python_requires = >=3.7
setup_requires =
setuptools_scm
Expand Down

0 comments on commit 6fb3e49

Please sign in to comment.