瀏覽代碼

Use a generator expression instead to support Python 2.6.

tags/v0.3.3
Marcio Faustino 10 年之前
父節點
當前提交
ee194fb07a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      mwparserfromhell/parser/tokenizer.py

+ 1
- 1
mwparserfromhell/parser/tokenizer.py 查看文件

@@ -620,7 +620,7 @@ class Tokenizer(object):
self._emit_first(tokens.TagAttrStart(pad_first=buf["first"],
pad_before_eq=buf["before_eq"], pad_after_eq=buf["after_eq"]))
self._emit_all(self._pop())
data.padding_buffer = {key: "" for key in data.padding_buffer}
data.padding_buffer = dict((key, "") for key in data.padding_buffer)

def _handle_tag_space(self, data, text):
"""Handle whitespace (*text*) inside of an HTML open tag."""


Loading…
取消
儲存