Don't encode and decode when copying nearly-unicode objects.
authorAdam Sampson <ats@offog.org>
Sat, 21 Feb 2009 18:36:38 +0000 (18:36 +0000)
committerAdam Sampson <ats@offog.org>
Sat, 21 Feb 2009 18:36:38 +0000 (18:36 +0000)
commit3b8eb1c09f63d05d28e95890527d1b928d31c262
tree8a37187c7d9d828b152d7b90c84f42a2b2520ae3
parent9dae9acf444cae47f4762fea1c85cd66ec2984aa
Don't encode and decode when copying nearly-unicode objects.

Why? Because BeautifulSoup's string class has a broken encode
implementation... and it appears that the unicode class is smart enough
to not reuse the object when it's a subclass anyway.
rawdoglib/rawdog.py