Permalink
Browse files

Removed Bio.SCOP.Dom.Iterator, which was deprecated

  • Loading branch information...
1 parent dd2d463 commit 5af7ecc4fdeaa44f039f16d52b97bc45adca9ce1 mdehoon committed Nov 5, 2010
Showing with 2 additions and 35 deletions.
  1. +0 −33 Bio/SCOP/Dom.py
  2. +2 −2 DEPRECATED
View
@@ -76,36 +76,3 @@ def parse(handle):
if line.startswith('#'):
continue
yield Record(line)
-
-
-class Iterator:
- """Iterates over a DOM file.
- """
- def __init__(self, handle, parser=None):
- """Create an object that iterates over a DES file.
-
- handle -- file-like object.
-
- parser -- an optional Parser object to change the results into
- another form. If set to None, then the raw contents
- of the file will be returned.
-
- """
- import warnings
- import Bio
- warnings.warn("Bio.SCOP.Dom.Iterator is deprecated. Please use Bio.SCOP.Dom.parse() instead.", Bio.BiopythonDeprecationWarning)
- from types import FileType, InstanceType
- if type(handle) is not FileType and type(handle) is not InstanceType:
- raise ValueError("I expected a file handle or file-like object")
- self._handle = handle
- self._parser = parser
-
- def next(self):
- line = self._handle.readline()
- if not line:
- return None
- if line.startswith('#'):
- return self.next()
- if self._parser is not None:
- return self._parser.parse(line)
- return line
View
@@ -416,8 +416,8 @@ Release 1.53.
Bio.SCOP
========
The module Bio.SCOP.FileIndex was deprecated in Release 1.46, and removed in
-Release 1.53. The class Parser in Bio.SCOP.DOM was removed in Release 1.55
-final.
+Release 1.53. The class Parser in Bio.SCOP.Dom was removed in Release 1.55
+final. The class Iterator in Bio.SCOP.Dom was removed in Release 1.56.
Bio.utils
=========

0 comments on commit 5af7ecc

Please sign in to comment.