gistapi/core.py
def files(self):
        """Fetch Gist's files and store them in the 'files' property."""
        try:
            return self._files
        except AttributeError:
            self._files = _files = {}

        for fn in self._meta['files']:
            # Grab file contents
            _file_url = GIST_BASE % 'raw/%s/%s' % (self.id, urllib2.quote(fn))
            _files[fn] = cStringIO.StringIO()
            _files[fn].write(requests.get(_file_url).content)

        return _files
Fetch Gist's files and store them in the 'files' property.
Fetch Gist's files and store them in the 'files' property.
Fetch Gist ' s files and store them in the ' files ' property .
def files(self):
        try:
            return self._files
        except AttributeError:
            self._files = _files = {}
        for fn in self._meta['files']:
            _file_url = GIST_BASE % 'raw/%s/%s' % (self.id, urllib2.quote(fn))
            _files[fn] = cStringIO.StringIO()
            _files[fn].write(requests.get(_file_url).content)
        return _files
def files ( self ) : try : return self . _files except AttributeError : self . _files = _files = { } for fn in self . _meta [ 'files' ] : _file_url = GIST_BASE % 'raw/%s/%s' % ( self . id , urllib2 . quote ( fn ) ) _files [ fn ] = cStringIO . StringIO ( ) _files [ fn ] . write ( requests . get ( _file_url ) . content ) return _files
Fetch Gist's files and store them in the 'files' property.
Fetch Gist ' s files and store them in the ' files ' property .
"""Fetch Gist's files and store them in the 'files' property.""" # Grab file contents
self