summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
authorjerous <jerous@gmail.com>2008-11-13 00:54:05 +0100
committerjerous <jerous@gmail.com>2008-11-13 00:54:05 +0100
commit315f9226a3529e3bbc8cc0f769a7f381dab5f526 (patch)
treea82b03d31248f25a33951a99eb6f71ef702a25aa /misc.py
parentb5c11bfd2d33ff37a0fb7ede1196699b68c0e4f1 (diff)
remove windows-newlines
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc.py b/misc.py
index 6fe176b..5df1ffa 100644
--- a/misc.py
+++ b/misc.py
@@ -105,6 +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=unicode(data, charset)
if stripHTML:
# do we want HTML?