Back to index

python3.2  3.2.2
Public Member Functions
email.feedparser.BytesFeedParser Class Reference
Inheritance diagram for email.feedparser.BytesFeedParser:
Inheritance graph
[legend]
Collaboration diagram for email.feedparser.BytesFeedParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def feed
def close

Detailed Description

Like FeedParser, but feed accepts bytes.

Definition at line 487 of file feedparser.py.


Member Function Documentation

def email.feedparser.FeedParser.close (   self) [inherited]
Parse all remaining data and return the root message object.

Definition at line 165 of file feedparser.py.

00165 
00166     def close(self):
00167         """Parse all remaining data and return the root message object."""
00168         self._input.close()
00169         self._call_parse()
00170         root = self._pop_message()
00171         assert not self._msgstack
00172         # Look for final set of defects
00173         if root.get_content_maintype() == 'multipart' \
00174                and not root.is_multipart():
00175             root.defects.append(errors.MultipartInvariantViolationDefect())
00176         return root

Here is the call graph for this function:

def email.feedparser.BytesFeedParser.feed (   self,
  data 
)
Push more data into the parser.

Reimplemented from email.feedparser.FeedParser.

Definition at line 490 of file feedparser.py.

00490 
00491     def feed(self, data):
00492         super().feed(data.decode('ascii', 'surrogateescape'))

Here is the caller graph for this function:


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