]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
i'm an idiot and forgot to blow away the variable declarations inside
authorSean Graham <github@sean-graham.com>
Fri, 27 Feb 2009 15:38:25 +0000 (23:38 +0800)
committerGreg Hewgill <greg@hewgill.com>
Mon, 4 May 2009 11:34:23 +0000 (19:34 +0800)
replaceLJTags after moving them to the global scope.

Signed-off-by: Greg Hewgill <greg@hewgill.com>
convertdump.py

index 4eb143d67b6fd0313b5e95ad0e2e045b64a2b2ed..0f59e8282d6dc9e2e9fa481a1312201b6468c2bf 100755 (executable)
@@ -190,14 +190,6 @@ embedRE = re.compile('<lj-embed id="[0-9]+">', re.IGNORECASE)
 def replaceLJTags(entry):
     rv = entry
 
-    userRE = re.compile('<lj user="(.*?)" ?/?>', re.IGNORECASE)
-    commRE = re.compile('<lj comm="(.*?)" ?/?>', re.IGNORECASE)
-    namedCutRE = re.compile('<lj-cut +text="(.*?)" ?/?>', 
-                            re.IGNORECASE|re.DOTALL)
-    cutRE = re.compile('<lj-cut>', re.IGNORECASE)
-    cutRE = re.compile('</lj-cut>', re.IGNORECASE)
-    embedRE = re.compile('<lj-embed id="[0-9]+">', re.IGNORECASE)
-
     # replace lj user tags
     rv = re.sub(userRE, '<a href="http://www.livejournal.com/users/\\1" class="lj-user">\\1</a>', rv)