code: def Opaque(uri, tc, ps, **keywords):
      '''Resolve a URI and return its content as a string.
      '''
      source = urllib.urlopen(uri, **keywords)
      enc = source.info().getencoding()
      if enc in ['7bit', '8bit', 'binary']: return source.read()
  
      data = StringIO.StringIO()
      mimetools.decode(source, data, enc)
      return data.getvalue(f Opaque(uri, tc, ps, **keywords):
      '''Resolve a URI and return its content as a string.
      '''
      source = urllib.urlopen(uri, **keywords)
      enc = source.info().getencoding()
      if enc in ['7bit', '8bit', 'binary']: return source.read()
  
      data = StringIO.StringIO()
      mimetools.decode(source, data, enc)
      return data.getvalue()
docs: Resolve a URI and return its content as a string.