  
  class WSGIRequest(http.HttpRequest):
      def __init__(self, environ):
          self.environ = environ
          self.path = environ['PATH_INFO']
          self.META = environ
          self.method = environ['REQUEST_METHOD'].upper()
  
      def __repr__(self):
          # Since this is called as part of error handling, we need to be very
 
</s> remove         self.path = req.uri
 </s> add         self.path = force_unicode(req.uri) </s> remove         url = u'http://%s%s' % (domain, url)
 </s> add         url = iri_to_uri(u'http://%s%s' % (domain, url)) </s> remove from django.utils.encoding import smart_unicode
 </s> add from django.utils.encoding import smart_unicode, iri_to_uri
        self.path = force_unicode(environ['PATH_INFO'])
  
  class WSGIRequest(http.HttpRequest):
      def __init__(self, environ):
          self.environ = environ
        self.path = force_unicode(environ['PATH_INFO'])
          self.META = environ
          self.method = environ['REQUEST_METHOD'].upper()
  
      def __repr__(self):
          # Since this is called as part of error handling, we need to be very
keep keep keep keep replace keep keep keep keep keep
 Changed HttpRequest.path to be a Unicode object. It has already been
URL-decoded by the time we see it anyway, so keeping it as a UTF-8 bytestring
was causing unnecessary problems.

Also added handling for non-ASCII URL fragments in feed creation (the portion
that was outside the control of the Feed class was messed up).



git-svn-id: http://code.djangoproject.com/svn/django/trunk@5629 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/core/handlers/wsgi.py