Explorar el Código

Use a generator expression instead to support Python 2.6.

tags/v0.3.3
Marcio Faustino hace 10 años
padre
commit
ee194fb07a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      mwparserfromhell/parser/tokenizer.py

+ 1
- 1
mwparserfromhell/parser/tokenizer.py Ver fichero

@@ -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."""


Cargando…
Cancelar
Guardar