def Opaque(uri, tc, ps, **keywords):
source = urllib.request.urlopen(uri, **keywords)<EOL>enc = source.info().getencoding()<EOL>if enc in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']: return source.read()<EOL>data = StringIO.StringIO()<EOL>mimetools.decode(source, data, enc)<EOL>return data.getvalue()<EOL>
Resolve a URI and return its content as a string.