From c3f53f2e847b3a7278c08031ce228f82652d886f Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 29 Jul 2012 03:47:58 -0400 Subject: [PATCH] Minor fixes. --- mwparserfromhell/nodes/tag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mwparserfromhell/nodes/tag.py b/mwparserfromhell/nodes/tag.py index 0f260f0..cc43d17 100644 --- a/mwparserfromhell/nodes/tag.py +++ b/mwparserfromhell/nodes/tag.py @@ -65,8 +65,8 @@ class Tag(Node): TAG_POEM = 202 # Lists of tags: - TAGS_INVISIBLE = [TAG_REF, TAG_GALLERY, TAG_MATH, TAG_NOINCLUDE] - TAGS_VISIBLE = range(300) - TAGS_INVISIBLE + TAGS_INVISIBLE = set((TAG_REF, TAG_GALLERY, TAG_MATH, TAG_NOINCLUDE)) + TAGS_VISIBLE = set(range(300)) - TAGS_INVISIBLE def __init__(self, type_, tag, contents, attrs=None, showtag=True, self_closing=False, open_padding=0, close_padding=0): @@ -120,7 +120,7 @@ class Tag(Node): return None def translate(self): - translations { + translations = { self.TAG_ITALIC: ("''", "''"), self.TAG_BOLD: ("'''", "'''"), self.TAG_UNORDERED_LIST: ("*", ""),