Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.ExPASy.ScanProsite.Parser Class Reference
Inheritance diagram for Bio.ExPASy.ScanProsite.Parser:
Inheritance graph
Collaboration diagram for Bio.ExPASy.ScanProsite.Parser:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def feed

Public Attributes


Detailed Description

Definition at line 59 of file

Constructor & Destructor Documentation

Definition at line 61 of file

00062     def __init__(self):
00063         ExpatParser.__init__(self)
00064         self.firsttime = True

Here is the caller graph for this function:

Member Function Documentation

def Bio.ExPASy.ScanProsite.Parser.feed (   self,
  isFinal = 0 

Definition at line 65 of file

00066     def feed(self, data, isFinal = 0):
00067         # Error messages returned by the ScanProsite server are formatted as
00068         # as plain text instead of an XML document. To catch such error
00069         # messages, we override the feed method of the Expat parser.
00070         # The error message is (hopefully) contained in the data that was just
00071         # fed to the parser.
00072         if self.firsttime:
00073             if data[:5]!="<?xml":
00074                 raise ValueError, data
00075         self.firsttime = False 
00076         return ExpatParser.feed(self, data, isFinal)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 63 of file

The documentation for this class was generated from the following file: