parameters: (self, key)
return_statement: return _ProxyFile(f)
docstring: Return a file-like representation or raise a KeyError.
docstring_summary: Return a file-like representation or raise a KeyError.
docstring_tokens: Return a file - like representation or raise a KeyError .
function: def get_file(self, key):
          """Return a file-like representation or raise a KeyError."""
          try:
              f = open(os.path.join(self._path, str(key)), 'rb')
          except IOError, e:
              if e.errno == errno.ENOENT:
                  raise KeyError('No message with key: %s' % key)
              else:
                  raise
          return _ProxyFile(f)
function_tokens: def get_file ( self , key ) : try : f = open ( os . path . join ( self . _path , str ( key ) ) , 'rb' ) except IOError , e : if e . errno == errno . ENOENT : raise KeyError ( 'No message with key: %s' % key ) else : raise return _ProxyFile ( f )