Fix the Gist.files attribute (bad merge).

This commit is contained in:
florentx
2010-08-18 21:32:17 +02:00
parent b4bb54b501
commit febbce7a0c
+2 -2
View File
@@ -188,10 +188,10 @@ class Gist(object):
except AttributeError:
self._files = _files = {}
for fn in self._meta.files:
for fn in self._meta['files']:
# Grab file contents
_file_url = GIST_BASE % 'raw/%s/%s' % (self.id, fn)
_files[fn] = urllib2.urlopen(_file_url).read()
_files[fn] = unicode(urllib2.urlopen(_file_url).read())
return _files