Feature Requests item #1472176, was opened at 2006-04-18 11:28 Message generated for change (Comment added) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1472176&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: "idna" encoding (drawing unicodedata) necessary in httplib? Initial Comment: httplib employs the "idna" encoding. that leads to errors in py2exe/cxfreeze. And if forced into the installer, it draws the 400kB+ unicodedata.pyd (on Win) in innocent small apps. Otherwise no normal technical modules draw the unicodedata. Is that really necessary? ---------------------------------------------------------------------- >Comment By: kxroberto (kxroberto) Date: 2006-04-19 11:41 Message: Logged In: YES user_id=972995 a patch attached ---------------------------------------------------------------------- Comment By: M.-A. Lemburg (lemburg) Date: 2006-04-18 11:59 Message: Logged In: YES user_id=38388 I agree - in most cases, ASCII will be used for hostnames (where the idna encoding is being used in httplib). A little helper function to first try .encode('ascii') and then revert to .encode('idna') would do wonders. Patches are welcome ! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1472176&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com