Commits

Martin von Löwis committed 76af364

Return uncompressed page from simple_page.

  • Participants
  • Parent commits 2828dae

Comments (0)

Files changed (1)

 ################### Transfer ######################################
 
 def simple_page(m, uproject):
-    logging.info("%s %s" % (m, uproject))
     project = uproject.encode('utf-8')
     h = httplib.HTTPConnection('pypi.python.org')
     if project:
         return None
     if r.status != 200:
         raise ValueError, "Status %d on %s" % (r.status, project)
-    html = zlib.compress(html)
+    chtml = zlib.compress(html)
     if obj:
-        obj.simple = html
+        obj.simple = chtml
     else:
         obj = model.Project(key_name=get_package_key_name(uproject),
-                            simple=html)
+                            simple=chtml)
     if project:
         # the root index is not signed
         h.putrequest('GET', '/serversig/'+urllib2.quote(project)+'/')