Re: urllib2.unquote() vs unicode

2008-03-17 Thread Gabriel Genellina
On 18 mar, 02:20, Maciej Bliziński <[EMAIL PROTECTED]> wrote: > I've been hit by a urllib2.unquote() issue. Consider the following > unit test: > > import unittest > import urllib2 > > class UnquoteUnitTest(unittest.TestCase): > >    def setUp(self): >        self.utxt = u'%C4%99' >        self.stx

urllib2.unquote() vs unicode

2008-03-17 Thread Maciej Bliziński
I've been hit by a urllib2.unquote() issue. Consider the following unit test: import unittest import urllib2 class UnquoteUnitTest(unittest.TestCase): def setUp(self): self.utxt = u'%C4%99' self.stxt = '%C4%99' def testEq(self): self.assertEqual( self.u