Commits

Lukasz Balcerzak committed 94ff06c

Removed start_response2django unsued function

  • Participants
  • Parent commits 541db05

Comments (0)

Files changed (2)

File projector/contrib/git/utils.py

         return False
     return False
 
-def start_response2django(status, headers):
-    """
-    Fakes standard wsgi start_response function but returns instance of
-    ``django.http.HttpResponse`` object.
-    """
-    response = HttpResponse()
-    response.status_code = int(status[:3])
-    for key, val in headers:
-        print key, val
-        response[key] = val
-    return response.write
-
-
 class GitResponse(HttpResponse):
 
     def write(self, content):

File projector/contrib/git/views.py

 
 from projector.contrib.git.utils import is_git_request
 from projector.contrib.git.utils import get_wsgi_response
-from projector.contrib.git.utils import start_response2django
 from projector.views.project import ProjectView
 
 from vcs.web.simplevcs.utils import log_error