  from django.core import signals
  from django.dispatch import dispatcher
  from django.utils import datastructures
  from django import http
  from pprint import pformat
  import os
  
  # NOTE: do *not* import settings (or any module which eventually imports
  # settings) until after ModPythonHandler has been called; otherwise os.environ
 
</s> remove from django.utils.encoding import smart_unicode
 </s> add from django.utils.encoding import smart_unicode, iri_to_uri </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         self.path = environ['PATH_INFO']
 </s> add         self.path = force_unicode(environ['PATH_INFO'])
from django.utils.encoding import force_unicode
  from django.core import signals
  from django.dispatch import dispatcher
  from django.utils import datastructures
from django.utils.encoding import force_unicode
  from django import http
  from pprint import pformat
  import os
  
  # NOTE: do *not* import settings (or any module which eventually imports
  # settings) until after ModPythonHandler has been called; otherwise os.environ
keep keep add keep 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/modpython.py