note about indns
authorKenneth Reitz <me@kennethreitz.com>
Fri, 24 Jun 2011 22:24:44 +0000 (18:24 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Fri, 24 Jun 2011 22:24:44 +0000 (18:24 -0400)
requests/models.py

index 6f794e2..8e60801 100644 (file)
@@ -238,6 +238,7 @@ class Request(object):
     def _build_url(self):
         """Build the actual URL to use"""
 
+        # Support for unicode domain names.
         parsed_url = list(urlparse(self.url))
         parsed_url[1] = parsed_url[1].encode('idna')
         self.url = urlunparse(parsed_url)