[Ironpython-users] issue with chardtect.detect with unicode type

2015-06-04 Thread Daniel Fernandez
Hi All, I'm playing with request but running into an issue with chardet.detect call. def detect(aBuf): if ((version_info < (3, 0) and isinstance(aBuf, unicode)) or (version_info >= (3, 0) and not isinstance(aBuf, bytes))): raise ValueError('Expected a bytes object, not

Re: [Ironpython-users] issue with chardtect.detect with unicode type

2015-06-04 Thread Andrew Graham
Yes, the unicode type in IronPython is is the same as string by design, ‘unicode == str’ will return True From: Daniel Fernandez Sent: Thursday, June 04, 2015 12:17 PM To: [email protected] Subject: [Ironpython-users] issue with chardtect.detect with unicode type Hi All, I'm play