Skip to content

Commit

Permalink
Revert Bio.PDB.Dice deprecation.
Browse files Browse the repository at this point in the history
I didn't notice this would break Bio.PDB.extract().

Also solves the deprecation warning appearing in
test_DSSP_tool.py.
  • Loading branch information
peterjc committed Jul 7, 2017
1 parent 015cd5a commit 3b7f121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Bio/PDB/Dice.py
Expand Up @@ -2,16 +2,16 @@
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Code for chopping up (dicing) a structure.
This module is used internally by the Bio.PDB.extract() function.
"""

import re
import warnings

from Bio.PDB.PDBIO import PDBIO
from Bio import BiopythonWarning
from Bio import BiopythonDeprecationWarning

warnings.warn("Bio.PDB.Dice is now deprecated will be removed in a "
"future release of Biopython.", BiopythonDeprecationWarning)

_hydrogen = re.compile("[123 ]*H.*")

Expand Down
5 changes: 0 additions & 5 deletions DEPRECATED.rst
Expand Up @@ -53,11 +53,6 @@ Bio.Phylo.CDAOIO.CDAOError
This exception was deprecated as of Release 1.70, and is no longer used
within Biopython.

Bio.PDB.Dice
============
This was deprecated in Biopython 1.70, it was likely intended as an example
script using PDBIO for selecting parts of a PDB file.

Bio.DocSQL
==========
This was deprecated in Biopython 1.69.
Expand Down

0 comments on commit 3b7f121

Please sign in to comment.