def get(self, uri):
if uri.startswith('<STR_LIT>'):<EOL><INDENT>head, part = self.id_dict[uri[<NUM_LIT:4>:]]<EOL>return StringIO.StringIO(part.getvalue())<EOL><DEDENT>if uri in self.loc_dict:<EOL><INDENT>head, part = self.loc_dict[uri]<EOL>return StringIO.StringIO(part.getvalue())<EOL><DEDENT>return None<EOL>
Get the content for the bodypart identified by the uri.