From 410a0ff69d02f0b2f68fddaab6f785b25fcc15ce Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 11 Apr 2010 00:22:37 -0400 Subject: [PATCH] Oops, those should have been raw strings --- mytwitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mytwitter.py b/mytwitter.py index dbaa9c1..784c419 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -212,7 +212,7 @@ class TweetBox(gtk.VBox): # and the text new_text = status.text - new_text = re.sub('&([^;]*?)( |$)', '&\1\2', new_text) + new_text = re.sub(r'&([^;]*?)( |$)', r'&\1\2', new_text) if gtk.pygtk_version[0] > 2 or (gtk.pygtk_version[0] == 2 and gtk.pygtk_version[1] >= 18): new_text = re.sub(r"(http://.*?)( |$)", r'\1\2', new_text) self.text.set_markup(new_text)