diff options
author | jerous <jerous@gmail.com> | 2008-11-16 14:18:01 +0100 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-11-16 14:18:01 +0100 |
commit | eda67631660a2b30a1f264384f8e0f9be73e1d40 (patch) | |
tree | 8bf5c86119d0dd8f35a80e443a3071c5e40d15ed /misc.py | |
parent | 5dd321b46784ed695f96d0a37b1a8628f210b873 (diff) |
fix replacing \r in fetching from sites
Diffstat (limited to 'misc.py')
-rw-r--r-- | misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +105,7 @@ def fetch(SE, sites, song=None, xtra_tags={}, stripHTML=True): charset='iso-8859-1' log.debug(" charset not found. Assuming %s"%(charset)) data=match.group(1) - data=re.sub('\033', '', data) # replace ^M + data=re.sub(chr(13), '', data) # replace ^M aka \r data=unicode(data, charset) if stripHTML: # do we want HTML? |